Set fso = CreateObject("Scripting.FileSystemObject") 删除文件夹 If fso.FolderExists(folderpath) Then '判断文件夹是否存在 fso.deletefolder(folderpath) end if 删除文件 if fso.FileExists(filepath) then '判断文件是否存在 fso.DeleteFile(filepath) end if
Set fso = CreateObject("Scripting.FileSystemObject")删除文件夹If fso.FolderExists(folderpath) Then '判断文件夹是否存在 fso.deletefolder(folderpath)end if删除文件if fso.FileExists(filepath) then '判断 ...