0

How to know if execution program is ok at windows?

I prepare a bat file that runs several programs and I handle exceptions in case of errors .

On linux a program return a code after execution.

joeqwerty
  • 109,901
  • 6
  • 81
  • 172
Jhonathan
  • 195
  • 1
  • 1
  • 4

1 Answers1

2

Depends if the windows executable you run returns a return code. The return code is stored in the %ERRORLEVEL% variable.

Simon Catlin
  • 5,232
  • 3
  • 17
  • 20