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 13:17:36
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:
00984798
Views:
27
Is "IISAdmin" correct name of the service? What do get from
? oShell.CanStartStopService("IISAdmin")
?
>Actually, I do too. But I am having trouble getting the ServiceStop and ServiceStart to work as expected.
>
>
>oShell = CREATEOBJECT("Shell.Application")
>if oShell.IsServiceRunning("IISAdmin")
>   ? oShell.ServiceStop("IISAdmin", .F.)
>endif
>? oShell.ServiceStart("IISAdmin", .F.)
>
>
>Am I doing it right?
>
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform