Quote:

Jooel has a good point there. You should never assume that the current dir is suitable to write the file to. Try using a complete path where you know that write rights exist.
shell '%COMSPEC% /C net start > "%temp%\services.tmp"'





I tried your suggestion, but it didn't make a difference.