Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using VFP to stop Services on a WIN2000 Server
Message
 
 
To
08/02/2005 12:15:54
General information
Forum:
Visual FoxPro
Category:
Other
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows 2000 SP4
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00984515
Message ID:
00984774
Views:
17
I like this better
oShell = CREATEOBJECT("Shell.Application")
? oShell.IsServiceRunning("ServiceName")
? oShell.ServiceStart("ServiceName",.F.)
? oShell.ServiceStop("ServiceName", .F.)
>To elaberate on John's post. If done in Fox.
>
>
>* Stop IIS.
>RUN cmd /c NET STOP "IIS Admin Service" /Y
>
>* Start IIS.
>RUN cmd /c NET START "World Wide Web Publishing Service"
>RUN cmd /c NET START "Simple Mail Transport Protocol (SMTP)"
>RUN cmd /c NET START "FTP Publishing Service"
>RUN cmd /c NET START "IIS Admin Service"
>
>
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform