The simplest way would be to use these two commands net stop Servcie name"
net start Servcie name" Thats all you really need to stop and start ANY Windows service from the command line on the local machine. You can eve use the NET command to access a remote Windows server to stop and start services. Regards, Wil Wil Genovese Sr. Web Application Developer/ Systems Administrator CF Webtools www.cfwebtools.com [email protected] www.trunkful.com On Oct 1, 2014, at 4:57 PM, John M Bliss <[email protected]> wrote: > > Care to share the batch file? > On Oct 1, 2014 5:56 PM, "Russ Michaels" <[email protected]> wrote: > >> >> we have a batch file which we run via a windows scheduled task, we don't do >> it via CF. >> >> On Wed, Oct 1, 2014 at 7:10 PM, John M Bliss <[email protected]> wrote: >> >>> >>> And do you do it the way Gerald recommended...? >>> >>> On Wed, Oct 1, 2014 at 12:16 PM, Russ Michaels <[email protected]> >>> wrote: >>> >>>> >>>> we have a scheduled task setup to restart CF every morning. Since we >> have >>>> done this we have hardly any cf issues any more. >>>> >>>> On Wed, Oct 1, 2014 at 3:46 PM, Gerald Guido <[email protected]> >>>> wrote: >>>> >>>>> >>>>> I don't know if this is the "best way" but you can put the following >>> text >>>>> in a .bat file and run it using cfexecute. >>>>> >>>>> net stop "ColdFusion 10 Application Server" >>>>> net start "ColdFusion 10 Application Server" >>>>> >>>>> <cfexecute name = "C:\somefolder\yourbatfile.bat"> >>>>> </cfexecute> >>>>> >>>>> HTH >>>>> G! >>>>> >>>>> *Gerald Anthony Guido* >>>>> Nullius in verba <http://en.wikipedia.org/wiki/Nullius_in_verba> >>>>> -- Horace >>>>> >>>>> learn.geraldguido.com >>>>> Twitter <https://twitter.com/CozmoTrouble> >>>>> Facebook <https://www.facebook.com/gerald.guido.9> >>>>> >>>>> On Wed, Oct 1, 2014 at 9:22 AM, John M Bliss <[email protected]> >>>> wrote: >>>>> >>>>>> >>>>>> Hi. What's the current best way to use CFML to restart ACF 10 app >>>> server >>>>>> service (on Windows server)? >>>>>> >>>>>> -- >>>>>> John Bliss - http://www.linkedin.com/in/jbliss >>>>>> >>>>>> >>>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~| Order the Adobe Coldfusion Anthology now! http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion Archive: http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:359381 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm

