Thanks, Dave.  I get a permission denied error.  Any ideas?

--------------------------------------------------------
Microsoft VBScript runtime error '800a0046'

Permission denied

/cyclecf/cfstop.asp, line 10

--------------------------------------------------------

Jim



----- Original Message -----

From: "Dave Watts" <[EMAIL PROTECTED]>
To: "CF-Server" <[EMAIL PROTECTED]>
Sent: Tuesday, February 20, 2001 7:05 PM
Subject: RE: ASP Code to Cycle Service


> > I seem to recall Dave or someone mentioning they used an ASP
> > page to cycle the CF service (in the rare instance that you
> > need to do that - knock on wood). Can ASP do this out of the
> > box, or does it require some additional components? Could
> > someone please post the code somewhere.
>
> You can do this "out of the box" with ASP. You'll need to have some pause
> between stopping and restarting the service; you could do that by using
two
> separate scripts, or by putting a loop in between the two. Enjoy!
>
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
>
> <html>
> <head>
> <title>Cycle CF!</title>
> </head>
>
> <body>
>
> <%
> Set Service = GetObject("WinNT://MACHINENAME/Cold Fusion Application
> Server")
> Service.Stop
> ' Service.Start
> %>
>
> </body>
> </html>
>
> Dave Watts, CTO, Fig Leaf Software
> http://www.figleaf.com/
> voice: (202) 797-5496
> fax: (202) 797-5444


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Structure your ColdFusion code with Fusebox. Get the official book at 
http://www.fusionauthority.com/bkinfo.cfm
------------------------------------------------------------------------------
To unsubscribe, send a message to [EMAIL PROTECTED] with 
'unsubscribe' in the body or visit the list page at www.houseoffusion.com

Reply via email to