Click here to Skip to main content
15,884,237 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
How do I call a batch file to restart a service and how do I call it from a C# project? please advice.
Posted

1 solution

Services can be managed from the command line, see e.g. http://www.jasonn.com/enable_windows_services_command_line[^]
In a .Net project, you can use System.Diagnostics.Process.Start to execute such a command line.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900