ASP删除服务器端文件
1 Set fs = server.CreateObject("scripting.filesystemobject") '创建实例
posit = server.mappath(posit)
2 if fs.FileExists(posit) then
3 fs.DeleteFile(posit) '删除文件
4 response.write "删除文件:"
5 response.write posit&"<br/>"
6 else
7 response.write posit&"文件未找到<br/>"
8 end if
posit = server.mappath(posit)
2 if fs.FileExists(posit) then
3 fs.DeleteFile(posit) '删除文件
4 response.write "删除文件:"
5 response.write posit&"<br/>"
6 else
7 response.write posit&"文件未找到<br/>"
8 end if