Picked this tip up from Anthony Petruzzi over at http://www.sheriff.org

Occasionally you may need to restart your ColdFusion server "dynamically" or
as part of a nightly "scheduled task".

All you need to do is create a little .bat file
test.bat
========
c:\winnt\system32\net.exe stop "Cold Fusion Application Server"
c:\winnt\system32\net.exe stop "Cold Fusion Executive"
c:\winnt\system32\net.exe stop "Cold Fusion RDS"
c:\winnt\system32\net.exe stop "ColdFusion Graphing Server"

c:\winnt\system32\net.exe start "Cold Fusion Application Server"
c:\winnt\system32\net.exe start "Cold Fusion Executive"
c:\winnt\system32\net.exe start "Cold Fusion RDS"
c:\winnt\system32\net.exe start "ColdFusion Graphing Server"

Then call it from CF or a scheduled  task with
====================
<cfexecute name="c:\test.bat"></cfexecute>

______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to