Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

cscript : how to keep the console window open when an error occurs ?

2 views
Skip to first unread message

R.Wieser

unread,
Jan 3, 2024, 3:18:03 AM1/3/24
to
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.


0 new messages