Einen Remote-Service starten/beenden
sc \\myServer start "My Background Service" sc \\myServer stop "My Background Service" sc \\myServer query "My Background Service"
Tags:
Batch
Ja/Nein Frage in einer DOS-Batch-Datei
:start SET cnt= SET /P cnt=Ist der Service gestartet worden? [J/N] FOR %%a IN (j J) DO IF [%%a]==[%cnt%] GOTO end GOTO start :end