I\'m using a batch file to stop a Windows service. I\'m using the sc command, but I\'m open to other ideas, given the question below. The problem is that the
sc
sc stop webdriveservice :loop sc query webdriveservice | find "STOPPED" if errorlevel 1 ( timeout 1 goto loop )