F
Fyodor Koryazhkin
Hi,
How can I verify the exit code of net start or net stop commands?
If I use net stop in a batch file and the service does not exist or already
stoped I want to stop executing the rest of the batch file and show the appropriate
message to the user.
Executing this command alone shows system error 1060 - "The specified service
does not exist as an installed service." however the errorlevel after executing
is 0.
So how to verify the real exit code?
Thank you.
Fyodor Koryazhkin
How can I verify the exit code of net start or net stop commands?
If I use net stop in a batch file and the service does not exist or already
stoped I want to stop executing the rest of the batch file and show the appropriate
message to the user.
Executing this command alone shows system error 1060 - "The specified service
does not exist as an installed service." however the errorlevel after executing
is 0.
So how to verify the real exit code?
Thank you.
Fyodor Koryazhkin