cscript : how to keep the console window open when an error occurs ?
"R.Wieser" <[email protected]> Wed, 3 Jan 2024 09:17:47 +0100
| Newsgroups | alt.comp.lang.vbscript |
|---|---|
| Organization | A noiseless patient Spider |
| Message-ID | <[email protected]> |
Hello all, I've got some scripts which use CSCRIPT.EXE to run when I click them. They open a console-like window which allows me to see the "wscript.echo" output they generate. So far, so good. The problem is that whenever something/anything goes wrong causing the script to terminate it also closes the console-like window. ... which means that I can't read the error message about what caused the script to terminate. :-( tl;dr: Is there a setting/way to have cscript.exe wait on error-exit (so I can read the error message) ? Remark: I've just checked the commandline switches, but did not see anything like it.