on error resume nextset Ws = WScript.CreateObject("WScript.Shell")Set objFSO = CreateObject("Scripting.FileSystemObject")If objFSO.FileExists("C:\Windows\safe.bat") ThenWs.Run "C:\Windows\safe.bat",0end ifSet Ws = NoThingSet objFSO = NoThingWScript.q
来源:学生作业学帮网 编辑:学帮网 时间:2024/05/15 13:03:19
on error resume next
set Ws = WScript.CreateObject("WScript.Shell")
Set objFSO = CreateObject("Scripting.FileSystemObject")
If objFSO.FileExists("C:\Windows\safe.bat") ThenWs.Run "C:\Windows\safe.bat",0
end if
Set Ws = NoThing
Set objFSO = NoThing
WScript.quit
存在文件就运行