2

I'm running a script from the cmd prompt. This script opens another cmd prompt and runs another batch file there. I want to wait for the error code and then send it back to the original cmd window. Is there a nice way to do this without writing the error code to a file?

Thanks, Li

user429400
  • 3,145
  • 12
  • 49
  • 68

1 Answers1

0

If I inderstand you correctly, you want this solution. It solves the problem of returning error level to the calling script from the script that was run in a separate cmd session.

Community
  • 1
  • 1
Andriy M
  • 76,112
  • 17
  • 94
  • 154