Stop and Start Windows Service Programmatically in LabWindows™/CVI™

Updated Mar 26, 2018

Reported In

Software

  • LabWindows/CVI

Issue Details

How to start and stop a Windows service programmatically in LabWindows™/CVI™ ?
 

Solution

You can call the function LaunchExecutable to stop a service as following:
LaunchExecutable ("cmd.exe /C net stop <Service name>");

You can start a service with the function:
LaunchExecutable ("cmd.exe /C net start <Service name>");

 

WAS THIS ARTICLE HELPFUL?

Not Helpful