Hmmm...it wouldn't work. Do I need to enable anything on the NT side?

Here is my index.cfm and my service-action.cfm pages...

index.cfm
-------------

<html>
<head>
<title>ColdFusion Services</title>
</head>

<body bgcolor="#ffffff" text="#000000" leftmargin="0" topmargin="0" 
marginwidth="0" marginheight="0" link="#0000FF" vlink="#0000FF" 
alink="#0000FF">

<link rel="STYLESHEET" type="text/css" 
href="<cfoutput>#stylesheets#styles.css</cfoutput>">

<cfform action="service-action.cfm" method="post" name="display">
<table width="100%" cellpadding=12" cellspacing="0" border="0">
<tr class="dirlinks" valign="top">
         <th>
                 Stop and Start ColdFusion Services
         </th>
</tr>
<tr class="dirlinks" valign="top">
<td align="center">
         <input type="submit" name="submit" value="Stop" class="navlinks">
         <input type="submit" name="submit" value="Start" 
class="navlinks">
         <input type="button" value="Close" class="navlinks" 
onClick="self.close()">
</td>
</tr>
</table>
</cfform>

</body>
</html>


service-action.cfm
-------------------------

<html>
<head>
<title>ColdFusion Services</title>
</head>

<body bgcolor="#ffffff" text="#000000" leftmargin="0" topmargin="0" 
marginwidth="0" marginheight="0" link="#0000FF" vlink="#0000FF" 
alink="#0000FF">

<link rel="STYLESHEET" type="text/css" 
href="<cfoutput>#stylesheets#styles.css</cfoutput>">

<!--- STOP/START COLD FUSION APPLICATION SERVER --->

<table width="100%" cellpadding=12" cellspacing="0" border="0">
<tr class="dirlinks" valign="top">
<cfif form.submit is "Stop">
         <th>
                 Stop ColdFusion Services
         </th>
                 <cfexecute name="c:\winnt\system32\net.exe"
                         arguments='stop "Cold Fusion Application Server"'>
                 </cfexecute>
                 <cfexecute name="c:\winnt\system32\net.exe"
                         arguments='stop "Cold Fusion Executive"'>
                 </cfexecute>
                 <cfexecute name="c:\winnt\system32\net.exe"
                         arguments='stop "Cold Fusion RDS"'>
                 </cfexecute>
                 <cfexecute name="c:\winnt\system32\net.exe"
                         arguments='stop "ColdFusion Graphing Server"'>
                 </cfexecute>
<cfelseif form.submit is "Start">
         <th>
                 Start ColdFusion Services
         </th>
                 <cfexecute name="c:\winnt\system32\net.exe"
                         arguments='start "Cold Fusion Application Server"'>
                 </cfexecute>
                 <cfexecute name="c:\winnt\system32\net.exe"
                         arguments='start "Cold Fusion Executive"'>
                 </cfexecute>
                 <cfexecute name="c:\winnt\system32\net.exe"
                         arguments='start "Cold Fusion RDS"'>
                 </cfexecute>
                 <cfexecute name="c:\winnt\system32\net.exe"
                         arguments='start "ColdFusion Graphing Server"'>
                 </cfexecute>
<cfelse>
         <cfabort showerror="An invalid action was passed.">
</cfif>

</tr>
<tr class="dirlinks" valign="top">
<td align="center">
         <input type="button" value="Back" class="navlinks" 
onClick="history.back()">
         <input type="button" value="Close" class="navlinks" 
onClick="self.close()">
</td>
</tr>
</table>

</body>
</html>









At 01:21 PM 4/8/2002 -0400, you wrote:
>use cfexecute tag.
>
>Stopping
>========
><cfexecute name="c:\winnt\system32\net.exe"
>            arguments='stop "Cold Fusion Application Server"'></cfexecute>
><cfexecute name="c:\winnt\system32\net.exe"
>            arguments='stop "Cold Fusion Executive"'></cfexecute>
><cfexecute name="c:\winnt\system32\net.exe"
>            arguments='stop "Cold Fusion RDS"'></cfexecute>
><cfexecute name="c:\winnt\system32\net.exe"
>            arguments='stop "ColdFusion Graphing Server"'></cfexecute>
>
>
>Starting
>========
><cfexecute name="c:\winnt\system32\net.exe"
>            arguments='start "Cold Fusion Application Server"'></cfexecute>
><cfexecute name="c:\winnt\system32\net.exe"
>            arguments='start "Cold Fusion Executive"'></cfexecute>
><cfexecute name="c:\winnt\system32\net.exe"
>            arguments='start "Cold Fusion RDS"'></cfexecute>
><cfexecute name="c:\winnt\system32\net.exe"
>            arguments='start "ColdFusion Graphing Server"'></cfexecute>
>
>Anthony Petruzzi
>Webmaster
>954-321-4703
>http://www.sheriff.org
>
>
>-----Original Message-----
>From: Douglas Brown [mailto:[EMAIL PROTECTED]]
>Sent: Monday, April 08, 2002 1:19 PM
>To: CF-Talk
>Subject: Re: Stop/restarting CF from a web page
>
>
>Here is a custom CFX tag for this, but i believe it is for NT
>
>http://devex.macromedia.com/developer/gallery/info.cfm?ID=A155CF05-7445-11D4
>-AAA
>400508B94F380&method=Full
>
>
>
>
>
>
>
>"Success is a journey, not a destination!!"
>
>
>
>Doug Brown
>----- Original Message -----
>From: "phumes1" <[EMAIL PROTECTED]>
>To: "CF-Talk" <[EMAIL PROTECTED]>
>Sent: Monday, April 08, 2002 10:08 AM
>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 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/cf-talk@houseoffusion.com/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists

Reply via email to