- Set oFSO = CreateObject("Scripting.FileSystemObject")
- Set oWS = CreateObject("WScript.Shell")
- File1 = "D:\开机命令\Run.bat"
- File2 = "Z:\开机命令\Run.bat"
- If oFSO.FileExists(file1) = True Then oWS.Run File1, 0
- If oFSO.FileExists(file2) = True Then oWS.Run File2, 0
复制代码
|