在 Windows 批处理文件中嵌入 VBScript
是否可以在批处理文件中嵌入 VBScript?
我目前有一个 .CMD 文件,它使用 .VBS 文件进行调用
cscript //NoLogo MyScript.vbs
,但我更愿意只分发一个 .CMD 文件。
编辑:有一个类似的问题,其中包含如何在不生成中间文件的情况下执行此操作的答案:是否可能在批处理文件中嵌入并执行 VBScript 而不使用临时文件?
Is it possible to embed VBScript within a batch file?
I currently have a .CMD file that calls a .VBS file using
cscript //NoLogo MyScript.vbs
but I'd prefer to distribute just a single .CMD file.
EDIT: There is a similar question with answers on how to do this without generating an intermediate file at all: Is it possible to embed and execute VBScript within a batch file without using a temporary file?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://www.computerhope.com/forum/index.php?topic=103686.0
http://www.computerhope.com/forum/index.php?topic=103686.0