开发者

Force Windows Batch Script Return Code 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜