Work out the way you would use cmd.exe to do it. Pass the entire "net stop myService" in the arguments (with /C Carries out the command specified by string and then terminates).
cmd.exe /c "net stop myService" As a side note, you can use WMI (Windows Management Instrumentation) for this also. David L. Penton, Microsoft MVP JCPenney Technical Specialist / Lead "Mathematics is music for the mind, and Music is Mathematics for the Soul. - J.S. Bach" [EMAIL PROTECTED] Do you have the VBScript Docs or SQL BOL installed? If not, why not? VBScript Docs: http://www.davidpenton.com/vbscript SQL BOL: http://www.davidpenton.com/sqlbol -----Original Message----- From: phumes1 How would I incorporate the following command into <cfexecute? net stop "Cold Fusion Application Server" <cfexecute name="C:\WINNT\system32\net.exe" arguments="???" timeout="1"> </cfexecute> At 12:27 PM 4/8/2002 -0500, you wrote: >Look at information on the "net" command and execute it from within CF. > >--- >Billy Cravens > > >-----Original Message----- >From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On >Behalf Of phumes1 >Sent: Monday, April 08, 2002 12:08 PM >To: [EMAIL PROTECTED] >Subject: Re: Stop/restarting CF from a web page > >Hi, > >How can I stop and start the CF server from within a webpage? > > > >+----------------------------------------------------------------------- >------------+ > >Philip Humeniuk >[EMAIL PROTECTED] >[EMAIL PROTECTED] >+----------------------------------------------------------------------- >-------------+ > > > >------------------------------------------------------------------------ >- >This email server is running an evaluation copy of the MailShield anti- >spam software. Please contact your email administrator if you have any >questions about this message. MailShield product info: >www.mailshield.com > >----------------------------------------------- >To post, send email to [EMAIL PROTECTED] >To subscribe / unsubscribe: http://www.dfwcfug.org > >------------------------------------------------------------------------- >This email server is running an evaluation copy of the MailShield anti- >spam software. Please contact your email administrator if you have any >questions about this message. MailShield product info: www.mailshield.com > >----------------------------------------------- >To post, send email to [EMAIL PROTECTED] >To subscribe / unsubscribe: http://www.dfwcfug.org +--------------------------------------------------------------------------- --------+ Philip Humeniuk [EMAIL PROTECTED] [EMAIL PROTECTED] +--------------------------------------------------------------------------- ---------+ ------------------------------------------------------------------------- This email server is running an evaluation copy of the MailShield anti- spam software. Please contact your email administrator if you have any questions about this message. MailShield product info: www.mailshield.com ----------------------------------------------- To post, send email to [EMAIL PROTECTED] To subscribe / unsubscribe: http://www.dfwcfug.org ------------------------------------------------------------------------- This email server is running an evaluation copy of the MailShield anti- spam software. Please contact your email administrator if you have any questions about this message. MailShield product info: www.mailshield.com ----------------------------------------------- To post, send email to [EMAIL PROTECTED] To subscribe / unsubscribe: http://www.dfwcfug.org
