每个文件分开了都可以执行.
应该是用else if吧?
我给大家看其中几个文件.
大家教教我如何组合起来呢?
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.DeleteFile("C:\Documents and Settings\a.exe"), True
'删除程序
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.DeleteFile("C:\Documents and Settings\b.exe"), True
'删除程序
Set objFSO = CreateObject("Scripting.FileSystemObject")
objFSO.DeleteFile("C:\Documents and Settings\c.exe"), True
'删除程序
3个文件的内容基本一样.分开都可以执行.
但是如何合起来呢?
请大家指教~
------解决方案--------------------------------------------------------
- HTML code
<% Set objFSO = CreateObject("Scripting.FileSystemObject") arr=Array("","b","c") for i=0 to ubound(arr) objFSO.DeleteFile("C:\Documents and Settings\"&arr(i)&".exe"), True next set objFSO=nothing%>