How can I run a WSH script without seeing the Microsoft header?

wsh
lucrussell picture lucrussell · Sep 17, 2009 · Viewed 7k times · Source

When a .vbs script is run from the command line, it will by default show a Microsoft header:

Microsoft (R) Windows Script Host Version 5.7
Copyright (C) Microsoft Corporation. All rights reserved.

How can this be disabled?

Answer

paxdiablo picture paxdiablo · Sep 17, 2009

I assume you mean with cscript since wscript doesn't show anything. You can use the nologo switch of cscript to stop the annoying copyright message from being displayed.

For example:

cscript /nologo xx.vbs