[求助]一段用FSO刪除html代碼,可是怎麼測試,html文件都不會刪除
Set Fso=Server.Createobject("Scripting.FileSystemObject")if image<>"" and fso.DriveExists(server.mappath("../uploadfile\"&image))then
Fso.DeleteFile(server.mappath("../uploadfile\"&image))
end if
if fso.DriveExists(server.mappath("../company\"&id&".html")) Then
Fso.DeleteFile(server.mappath("../company\"&id&".html"))
end if
set fso=nothing