Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

//nologo by default

Status
Not open for further replies.

xwb

Programmer
Jul 11, 2002
6,828
GB
Is there something that can be set in the registry so that cscript runs with //nologo by default?

Alternatively, is there an internal coding option in wsf that we can add to stop the logo from being displayed?
 
what about this ?
cscript //Nologo //S

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
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.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top