I would not use this approach because it now assumes that you ALWAYS want to use cscript. In some cases, wscript may be what you need. The best way to do this IMO is to just set the WSH to use the "//nologo" switch by default. It can be done in the registry.
To do this put in this registry entry:
Code:
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows Script Host\Settings]
"DisplayLogo"="0"
That makes cscript automatically use the "//nologo" switch.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.