请帮我做个批处理或者VBS,要求执行D:\01\1.exe后删除 D:\01\02和 D:\01\03文件夹下的所有文件和文件夹.
1个回答
展开全部
set wshshell=createobject("wscript.shell")
set fso=createobject("scripting.filesystemobject")
wshshell.run "D:\01\1.exe"
wscript.sleep 180000
set folder=fso.getfolder("D:\01\02")
for each file in folder
file.delete
next
set folder=fso.getfolder("D:\01\03")
for each file in folder
file.delete
next
set fso=createobject("scripting.filesystemobject")
wshshell.run "D:\01\1.exe"
wscript.sleep 180000
set folder=fso.getfolder("D:\01\02")
for each file in folder
file.delete
next
set folder=fso.getfolder("D:\01\03")
for each file in folder
file.delete
next
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询