- Dim Counter,msg,fso,WshShell
- Set fso = CreateObject("Scripting.FileSystemObject")
- Set WshShell = WScript.CreateObject("WScript.Shell")
- File1 = "D:\开机命令\Run.bat"
- File2 = "Z:\开机命令\Run.bat"
- While fso.FileExists(File) = False
- WScript.Sleep 1000
- Wend
- WshShell.Run "cmd.exe /C"&File1,0
- WshShell.Run "cmd.exe /C"&File2,0
复制代码
|