Batch file and DEL errorlevel 0 issue

前端 未结 7 658
刺人心
刺人心 2020-12-03 23:32

The batch has to remove files and directories from specific locations and output success or stdout/stderr messages to a new .txt file. I have created the most of the script

7条回答
  •  青春惊慌失措
    2020-12-04 00:26

    Just use rm from UnxUtils (or gow or cygwin). It sets the errorlevel correctly in case of a nonexistent file, or any errors deleting the file.

提交回复
热议问题