开发者

Force Windows Batch Script Return Code 0

开发者 https://www.devze.com 2023-02-05 03:12 出处:网络
A vendor has provided us with a Windows Batch script that needs to have a return co开发者_JAVA技巧de of 0.

A vendor has provided us with a Windows Batch script that needs to have a return co开发者_JAVA技巧de of 0.

Per that vendor, there are safe to ignore messages being printed by the script.

The scripts are used for quiescing the application for a proper backup. Our backup software requires a return code of 0.

How can I do this?


End the script with:

exit /b 0


adding a line to the end of the script

Ver > nul 

should do the trick

0

精彩评论

暂无评论...
验证码 换一张
取 消