Closed rasa closed 10 years ago
Slight mod to your batch file to shrink it down to 2 lines: sc query sshd >nul 2>nul && set SSH_SERVICE=sshd sc query opensshd >nul 2>nul && set SSH_SERVICE=opensshd
In batch files, you can use && and || as one-liner with success/failure checking (I think)
Trying this out to see if it works
Yeah, I agree, that's more elegant.
Merged
Start ssh daemon after all other scripts are run, to avoid premature shutdown (floppy/zz-net-start-sshd.cmd)