可以用以下两种
os:cmd("mshta vbscript:msgbox(\"infomation:hello;\",64,\"window Title\")(window.close)").
或者
os:cmd("echo msgbox \"infomation:hello\",64,\"window title\">1.vbs && start 1.vbs && ping -n 2 127.1>nul && del 1.vbs").
win7下测试通过;不知道 msg * hello 为什么不能识别
本文介绍了如何在Windows 7系统中使用os:cmd命令来运行VBS脚本,包括两种不同的方法。通过实例演示了如何在命令提示符下执行VBS文件并实现特定功能。
420

被折叠的 条评论
为什么被折叠?



