Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm trying to figure out what's going wrong inside a microsoft batch file, and I want to preserve the file and environment it runs from as it natively would. How can I force echo to stay on so I can find the line that is giving an error without changing their file?

share|improve this question

1 Answer 1

If the batch file has Echo Off in it, then you are pretty much out of luck unless you remove/remark that line (or change it to Echo On).

It's pretty safe to make a backup, REM out that line, and save it as it won't affect any functionality besides preventing Echo from being turned off.

You Can't Make an Omelette without breaking a few eggs. :)

Perhaps just warn "them" of what you are going to do; If it's broken already, and they've asked you to look at it, then I doubt they'll mind. :)

share|improve this answer
1  
+1: You can pretty much backup anything ans safely modify it. –  surfasb Oct 29 '11 at 0:01

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.