asp作成CSV出力

来源:互联网 发布:数据库表主键怎么设置 编辑:程序博客网 时间:2024/05/11 06:09

FileName =  date_to &"_请求明细.csv"

Path = " "&CF_Temp()&FileName

csvdlurl = " "&CF_SetDLCSVPath()&FileName

Set  FSO = Server.CreateObject("Scripting.FileSystemObject")

IF  FSO.FileExists(Path)=True then

      FSO.DeleteFile  Path,true

END IF

SET  TSO = FSO.CreateTextFile(Path,True,False)

IF  Err.Number<>0 then

else

    TSO.WriteLine(strTitle)

    Tso.Close

    SET TSO = nothing

End If

原创粉丝点击