I'm pretty new to this whole batch thing and was wondering if you could help me out.
I have been given this bit of code, but it seems a bit ugly to me because it requires part of the code to fail (i think) to trigger the other bit of code.
NET START "service" || NET STOP "service"
Personally I would have thought the code should look somewhat like this:
IF "service"==stopped "NET START 'service'" IF "service"==started "NET STOP 'service'"
I expect many of you are screaming at your monitors that I have totally killed the code or missed the concept or something, but that's why I am here - so the experts can help.
I hope you can, and thanks in advance,
AliL