Archive: Get DOS window to appear for debugging..


Get DOS window to appear for debugging..
Hi All,

Using nsExec::Exec works great for running service.bat,
and not having the DOS window appear, but now I'm
having problems with it, service.bat, and want to either
have the DOS window appear, so I can see the 'echo'
statements, so I can see what's going on with it,
or be able to somehow dump it's output somewhere
so I can look at it..

What's the best way to do that?

I tried using 'Exec' and 'ExecWait', but the window
only flashes up for a second..

Thanks!


Just add "pause" at the end of the batch file. Then it will stay open until you push a key one the keyboard.


Also you may try nsExec::Exectolog function.