wangdao6699 当前离线
一级士官
评分人数
pcl_test 当前离线
荣誉版主
arr = array("a","b","c") For i=0 To UBound(arr)-LBound(arr) bat=arr(i)+".bat" wscript.createobject("wscript.shell").run "cmd /c """+bat+"""" wscript.sleep 500 Next复制代码
TOP
回复 pcl_test [quote]vbs调用多个bat,vbs和bat在同一个目录,如a.bat,b.bat,c.bat... 依次执行bat批处理,a.bat执行完后,b.ba ... wangdao6699 发表于 2015-4-17 09:35
回复 pcl_test 几个bat一起运行的 wangdao6699 发表于 2015-4-17 17:37
czjt1234 当前离线
少校
arr = array("a","b","c") For i=0 To UBound(arr) bat=arr(i)+".bat" createobject("wscript.shell").run "cmd /c """+bat+"""",,True Next复制代码
@echo off & setlocal enabledelayedexpansion for %%a in ("a","b","c") do ( set "n=%%a" & set "n=!n:"=!" cmd /c "!n!.bat" ping 0 -n 2 >nul ) pause复制代码