I need to create a service using C # and sc.exe
when I try to execute
C:\Windows\system32\sc.exe create ServiceName binPath= D:\work\ServiceExe.exe,
It works great. But when I try to execute
Process.Start(@"C:\Windows\system32\sc.exe create ServiceName binPath= D:\work\ServiceExe.exe");
I have an exception that the system cannot find the specified file .
What could it be? File exists, uninstall service before reinstalling.
E-max source
share