How can I debug a .BAT script?

后端 未结 11 1316
没有蜡笔的小新
没有蜡笔的小新 2020-11-28 09:42

Is there a way to step through a .bat script? The thing is, I have a build script , which calls a lot of other scripts, and I would like to see what is the order in which th

11条回答
  •  旧时难觅i
    2020-11-28 10:17

    rem out the @ECHO OFF and call your batch file redirectin ALL output to a log file..

    c:> yourbatch.bat (optional parameters) > yourlogfile.txt 2>&1

    found at http://www.robvanderwoude.com/battech_debugging.php

    IT WORKS!! don't forget the 2>&1...

    WIZ

提交回复
热议问题