Skip to main content
Known Participant
October 31, 2009
Question

Stop CF running when windows starts?

  • October 31, 2009
  • 1 reply
  • 2266 views

Hi,

I'm using the developer edition of CF8 to work and test locally on WinXP, but don't want ColdFusion server to run when windows starts as I only work on it about once a week, and jrun.exe (which I believe is the coldfusion process) adds quite a bit to my bootup time and eats some system resources.

So, I was thinking I'd disable any references to ColdFusion in my MSCONFIG settings, but then I need a quick easy way of launching them all when I want to use the server.

Can anyone suggest a way to set it up this way so ColdFusion only loads when I want to use it?

Thanks in advance.
T

    This topic has been closed for replies.

    1 reply

    Inspiring
    October 31, 2009

    Set it's Windows service to be manual start.

    --

    Adam

    BKBK
    Community Expert
    Community Expert
    November 2, 2009
    Set it's Windows service to be manual start.

    And then you can use the following trick to prevent you from having to open the Windows service whenever you wish to manually start Coldfusion.

    1) Store the following line of scripting code as the file invis.vbs in C:\ColdFusion8\bin\. Its purpose is to start a batch file invisibly, that is, without keeping the DOS screen open.

    CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False

    2) Store the following line of scripting code as the batch file launch_CF8.bat in C:\ColdFusion8\bin\. Its purpose is to start Coldfusion invisibly.

    wscript.exe "C:\Coldfusion8\bin\invis.vbs" "cfstart.bat"

    3) In the directory C:\ColdFusion8\bin\, right-click on the file launch_CF8.bat. Create a short-cut on the desktop. In the same directory, also right-click on the file cfstop.bat, and create a short-cut for it on the desktop.

    That's it. Done. From now on, you only have to double-click on the link launch_CF8.bat on your dsektop to start Coldfusion, and on the link cfstop.bat to stop it.

    Inspiring
    November 2, 2009
    And then you can use the following trick to prevent you from having to open the Windows service whenever you wish to manually start Coldfusion.

    That seems like a lot of hoops to jump through when one just needs to go NET START [name of CF service here].

    Or am I missing something?

    --

    Adam