国产精品自拍露脸视频_91视频区_国产美女久久久久不卡_91丝袜乱伦_国产国拍精品视频免费看 _…亚洲 欧洲 另类 春色_成人福利在线视频_国产精品自拍合集

asp各種文件操作UTF-8

2022/11/24 12:37:29122 閱讀

    '--------------生成文件
    sPath=sitemulu & "u/wx_bding/temp/"
    Set fso = Server.CreateObject("Scripting.FileSystemObject")
    If Not fso.FolderExists(Server.mappath(sPath)) Then
    fso.CreateFolder(Server.mappath(sPath))
    End If
    set wTmp=server.CreateObject("adodb.stream")
    wTmp.Type=2 
    wTmp.mode=3
    wTmp.charset="utf-8"
    wTmp.open
    wTmp.SaveToFile server.MapPath("./temp/" & pc_state &".asp"),2 
    wTmp.flush
    wTmp.Close
    set wTmp=nothing
    
    
    '--------------寫入文件
    set stm=server.CreateObject("adodb.stream")
    stm.Type=2 '以本模式讀取
    stm.mode=3
    stm.charset="utf-8"
    stm.open
    stm.WriteText openid
    stm.SaveToFile server.MapPath("./temp/" & f_state &".asp"),2 
    stm.flush
    stm.Close
    set stm=nothing
    '--------------判斷文件是否存在
    Filepath=Server.MapPath("./temp/" & session("pc_state") &".asp")
    Set fso = Server.CreateObject("Scripting.FileSystemObject")
    If fso.FileExists(FilePath) then'判斷文件是否存在	
    '文件存在并且有內容
    Set f = fso.GetFile(Filepath)
    f.size > 0
    '--------------刪除文件			
    Filepath=Server.MapPath("./temp/" & f_state &".txt")'刪除標識文件
    Set fso = Server.CreateObject("Scripting.FileSystemObject")
    If fso.FileExists(FilePath) then
    fso.deletefile(Filepath)
    end if
    set fso = nothing
    '----------------文件屬性
    Set fso=Server.CreateObject("Scripting.FileSystemObject")
    iUrl=Server.MapPath(filespec)
    Set f = fso.GetFile(iUrl)
    "Path: " & f.Path 
    "Created: " & f.DateCreated 
    "Last Accessed: " & f.DateLastAccessed 
    "Last Modified: " & f.DateLastModified  
    
    

    下一條:支付寶rsa2簽名驗簽php函數(shù)

    上一條:艾恩Asp生成Json數(shù)據類

棗莊西橋網絡微信小程序微信小程序

棗莊西橋網絡手機站二維碼掃描手機瀏覽

望城县| 罗江县| 镇宁| 两当县| 长宁区| 比如县| 光泽县| 通州区| 富川| 靖宇县| 镇坪县| 林甸县| 盐源县| 河北区| 南平市| 武胜县| 饶河县| 宜丰县| 济阳县| 错那县| 梁河县| 苏尼特左旗| 桂东县| 慈溪市| 高安市| 绥江县| 黄龙县| 西贡区| 深泽县| 公主岭市| 苏尼特左旗| 贵州省| 荆门市| 石嘴山市| 军事| 高雄县| 西贡区| 砀山县| 洪洞县| 库伦旗| 洱源县|