Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to tell if a service is running
Message
General information
Forum:
Visual FoxPro
Category:
Windows API functions
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01180151
Message ID:
01180154
Views:
25
>Could anyone offer a way of checking to see whether or not a WinNt service is running on a local machine in code?
>
>Thanks,
>-Matt
oShellApp = CreateObject("Shell.Application")
IF oShellApp.IsServiceRunning("Here write the Service Name")
   MESSAGEBOX([Yes])
ELSE
   MESSAGEBOX([No])
ENDIF
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform