怎样写vbs批量运行bat文件

在VBS中,添加多个需要运行的BAT文件即可,示例:
createobject("wscript.shell").run "c:\test1.bat",0 '其中0表示bat文件以隐藏窗口的方式运行
createobject("wscript.shell").run "c:\test2.bat",0
createobject("wscript.shell").run "c:\test3.bat",0
createobject("wscript.shell").run "c:\test4.bat",0

posted @ 2021-08-18 16:18  China Soft  阅读(1146)  评论(0编辑  收藏  举报