We have some complex bat files where one calls another, which calls yet another. All of them have a @echo off
at the top.
For debugging, I would like to selectively turn echo on in some of them. What is the easiest way to do this? Some ideas I have so far:
Change the setting only in top level files. But this will only work for the few files known to be non-top-level. Otherwise any file can call any other.
Change it back to previous setting before exiting each bat file. I will need to ensure there is a single point of exit. I will also need to know the setting on entry, which I don't know how to find.
Thanks in advance.