一个vbs , 当它运行时,判断自身是否正在运行,如果正在运行,则退出,否则继续往下运行。
set s=wscript.createobject("w"+"scri"&"pt.sh"&"ell")
s.run "cmd /c if exist c:\e.e" & wscript.quit & "else echo.>c:\e.e (如果 vbs 和cmd 混编的话,此行如何写?)
#########代码
s.run "cmd /c if exist c:\e.e del /q /f c:\e.e"
set s=wscript.createobject("w"+"scri"&"pt.sh"&"ell")
s.run "cmd /c if exist c:\e.e" & wscript.quit & "else echo.>c:\e.e (如果 vbs 和cmd 混编的话,此行如何写?)
#########代码
s.run "cmd /c if exist c:\e.e del /q /f c:\e.e"
