I have a VB Script in which I only want to display certain messages if I'm
running under CScript. I use WScript.Echo to display these messages. If the
script is running under WScript, it opens the message box and I have to hit
"OK" to continue, so if the script is running under WScript, I do not want to
display these messages.
I'm looking for a way, in the script, to tell if it is running under CScript
or WScript. Is there some property that tells me which program the script is
running under? If not, is there any other way to accomplish this?
Thanks