I have an EXE which will have the Output values as 0/1. The EXE is to be called via a batch file. I want the Batch file to run the EXE and write the output obtained. How is this possible? Any help would be appreciated.
I asume that you want to capture the output of the EXE and process that value, instead of just printing that value. Here is how you can capture the output in a variable:
FOR /F "tokens=*" %%i IN ('%~dp0sometool.exe') DO SET TOOLOUTPUT=%%i
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With