Skip to main content
Inspiring
November 24, 2010
Question

Win7 x64 + IIS + CF9 - run a .cfm file from browser

  • November 24, 2010
  • 1 reply
  • 4950 views

Is it possible to have everything setup so, as the computer user can dbl-click on a .cfm file from windows eg. index.cfm and have it display correctly in the browser ?

At present, clicking on a .cfm file causes Dreamweaver to load and display it.

Dreamweaver can then go on to display the file in the configured browser.

    This topic has been closed for replies.

    1 reply

    Inspiring
    November 24, 2010

    I doubt it, because when you're browsing the file system, you're not making an HTTP request, which is what's required to execute a CFM file (the web server asks CF to process the request).  Think about it: how can the file system possibly know what your domain name is, what your web root is, and stuff like that?

    --

    Adam

    Inspiring
    November 24, 2010

    OK

    So should I be able to use an internet browser to open any .cfm on my computer

    eg. right click on file and say "open with internet explorer" ?

    Currently when I do, it doesn't work ?

    Inspiring
    November 24, 2010

    OK, you're not listening.  Or I'm not articulating myself.

    Opening a file FROM THE FILE SYSTEM does not go via the web server, so the web server doesn't pass the request to CF, so it doesn't get processed, returend to the web server, and returned to the browser.

    All you're doing is opening the physical file.

    You can't do what you want to do.

    --

    Adam