VBS判断文件如果不存在,就隐藏运行另一个文件,

2025-04-12 23:41:31
推荐回答(1个)
回答(1):

dim fs,s 
set fs=wscript.createobject("scripting.filesystemobject") 

if (fs.FileExits("d:\1.txt")) then 


else

CreateObject("Shell.Application").ShellExecute "cmd.exe","/c start /b C:\22.bat)","","runas",0

end if

你要运行的到底是C:\2.bat 还是 C:\22.bat