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

2

15

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?

Jenicejeniece answered 17/9, 2009 at 8:19 Comment(0)
F
29

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
Femininity answered 17/9, 2009 at 8:22 Comment(0)
J
8

Answering my own question...

You can do this with the /nologo option, e.g.

cscript /nologo myscript.vbs
Jenicejeniece answered 17/9, 2009 at 8:20 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.