p 和 vbs 删除自身后,删除命令后面的代码还执行吗?
echo 1
echo 2
echo 3
del %0
echo 4
echo 5
vbs:
set s=wscript.createobject("wscript.shell")
s.run "cmd /c echo 1>1.txt",0
s.run "cmd /c echo 2>2.txt",0
s.run "cmd /c echo 3>3.txt",0
s.run "cmd /c del /q " & Chr(34) & WScript.ScriptFullName & Chr(34) & "",0
s.run "cmd /c echo4>4.txt",0
s.run "cmd /c echo 5>5.txt",0
[ Last edited by QOIQoc on 2009-6-24 at 10:33 ]
echo 1
echo 2
echo 3
del %0
echo 4
echo 5
vbs:
set s=wscript.createobject("wscript.shell")
s.run "cmd /c echo 1>1.txt",0
s.run "cmd /c echo 2>2.txt",0
s.run "cmd /c echo 3>3.txt",0
s.run "cmd /c del /q " & Chr(34) & WScript.ScriptFullName & Chr(34) & "",0
s.run "cmd /c echo4>4.txt",0
s.run "cmd /c echo 5>5.txt",0
[ Last edited by QOIQoc on 2009-6-24 at 10:33 ]
