Is it just me, but if you do stop CF on the machine you are running the CF
page on, how will to turn it back on? You can't call the page again, CF
will be stopped. If you are trusting CF to start itself again, I wouldn't
trust it to.
Look to another language before trying this, think about it. There are
thousands of tools to do this. I use WMI personally. If you want it in a
web page, put in an ASP or JSP page instead of stopping the compiler through
the compiler you are trying to stop, that's just asking for trouble.
-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of David L. Penton
Sent: Monday, April 08, 2002 1:28 PM
To: [EMAIL PROTECTED]
Subject: RE: Stop/restarting CF from a web page
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
-------------------------------------------------------------------------
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