Set Shell = CreateObject("Wscript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
If fso.FileExists("D:\Program Files\aa\a.exe") And fso.FileExists("D:\Program Files\bb\b.exe") Then
Shell.Run "ok.bat"
ElseIf fso.FileExists("D:\Program Files\cc\c.exe") Then
Shell.Run "yes.bat"
Else
Shell.Run "no.bat"
End If
欢迎光临 批处理之家 (http://www.bathome.net/) | Powered by Discuz! 7.2 |