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

纵然是瞬间 提交于 2020-02-23 08:53:42

问题


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?


回答1:


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



回答2:


Answering my own question...

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

cscript /nologo myscript.vbs


来源:https://stackoverflow.com/questions/1437431/how-can-i-run-a-wsh-script-without-seeing-the-microsoft-header

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!