开发者

Get the return value when running a command in batch file

I have a command to run : vsinstr -coverage hello.exe, and it returns error code w开发者_开发百科ith the following message to the stderr : Error VSP1018: VSInstr does not support processing binaries that are already instrumented..

How can I get the error code when I run this command in batch file?


Using %errorlevel% within the batch code following the call to the .exe should reference the returned error code. (However, if you need to access that "VSP1018" value, well, I'm not sure how or if you even can reference the error message.)

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜