wsok1234 当前离线
列兵
Dim fso,obj set fso=createobject("scripting.filesystemobject") fso.DeleteFolder "D:\Archive\IISsetup\I386"复制代码
Hello123World 当前离线
荣誉版主
TOP
applba 当前离线
中校
DeleteFolder是用来删除文件夹的,删除文件用DeleteFile方法。 Hello123World 发表于 2012-1-13 13:46
broly (Broly)当前离线
版主
dim wshshell Set WshShell= WScript.CreateObject("WScript.Shell") Wshshell.run "cmd /c rd /s /q D:\ ... applba 发表于 2012-1-14 09:26
powerbat 当前离线
大校
createobject("wscript.shell").currentdirectory="\" '切换工作目录 set fso=createobject("scripting.filesystemobject") fso.DeleteFolder "D:\Archive\IISsetup\I386", true复制代码