grittyminder
IS-IT--Management
Hi all,
I need help with a problem that doesn't make any sense. I can't seem to switch the default scripting host to cscript. The way this is normally done is via the following command:
wscript //H:cscript
When I run this command I see something similar to "the default script host was set to cscript"; however, the scripting host remains to be wscript (e.g. when I run WScript.FullName I get back c:/Windows/System 32/WScript.exe).
I also tried changing the default script host using a script (e.g. oShell.Run "cscript """ & WScript.ScriptFullName & """", 1, False) but that doesn't seem to work either.
Having wscript.echo'ed text pop up whenever I run a script is driving me nuts. Please help!
I need help with a problem that doesn't make any sense. I can't seem to switch the default scripting host to cscript. The way this is normally done is via the following command:
wscript //H:cscript
When I run this command I see something similar to "the default script host was set to cscript"; however, the scripting host remains to be wscript (e.g. when I run WScript.FullName I get back c:/Windows/System 32/WScript.exe).
I also tried changing the default script host using a script (e.g. oShell.Run "cscript """ & WScript.ScriptFullName & """", 1, False) but that doesn't seem to work either.
Having wscript.echo'ed text pop up whenever I run a script is driving me nuts. Please help!