Solved Debugging a batch file?

March 13, 2012 at 15:13:15
Specs: Windows 7
Normally when I get an error I just restart the program and get to the part with the error the press the "prt sc" button on my keyboard. Then I open an image editor and paste the screen shot. But all that is a hassle to do so I thought maybe I could run an external batch file that reads errors from all other batch files running and puts them in a log. I searched around and ran across a few non-sense results. So I would like some help making something like this. For one thing I don't know how to access a different file's errorlevel variable so I can't log errorlevel without putting:

Every other line. So I need a new method of doing this.

See More: Debugging a batch file?

Report •

March 13, 2012 at 15:41:20
✔ Best Answer
When I'm working on a batch script, I leave echo on and call it from CMD.

How To Ask Questions The Smart Way

Report •

March 13, 2012 at 18:31:44
@Razor2.3 Thanks! I never knew that calling it would allow me to actually READ the error!

Report •
Related Solutions

Ask Question