ASP生成文件

 Set fso = Server.CreateObject("Scripting.FileSystemObject")
  Set fout = fso.Createtextfile(server.mappath("..\eshop\view\"&rs("bname")),true)
 fout.writeline okfile
fout.close


FiLePaTh = Server.MapPath("..\..\commerce\view\")&"\"&tempfname
Set fso = CreateObject("Scripting.FileSystemObject")
fso.DeleteFile(filepath)
If img<>"" then FiLePaTh = Server.MapPath("\upload\member\")&"\"&img : fso.DeleteFile(FilePath)
Set fso = nothing
原文地址:https://www.cnblogs.com/tdalcn/p/683573.html