如何在不看到 Microsoft 标头的情况下运行 WSH 脚本? [英] How can I run a WSH script without seeing the Microsoft header?

查看:27
本文介绍了如何在不看到 Microsoft 标头的情况下运行 WSH 脚本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从命令行运行 .vbs 脚本时,默认情况下会显示 Microsoft 标头:

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.

如何禁用此功能?

推荐答案

我假设你的意思是 cscript 因为 wscript 没有显示任何东西.您可以使用 cscriptnologo 开关来停止显示烦人的版权信息.

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.

例如:

cscript /nologo xx.vbs

这篇关于如何在不看到 Microsoft 标头的情况下运行 WSH 脚本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆