function download(f,n)
'f文件全路径,n下载文件的文件名
' on error resume next
Set S=CreateObject("Adodb.Stream")
S.Mode=3
S.Type=1
S.Open
S.LoadFromFile(f)
if Err.Number>0 then
Reaponse.status="404"
else
Response.ContentType="application/octet-stream"
Response.AddHeader "Content-Disposition:","Attachment;filename="&n
Range=Mid(Request.ServerVariables("HTTP_RANGE"),7)
if Range="" then
Response.BinaryWrite(S.Read)
else
S.Postion=Clng(Split(Range,"-")(0))
Response.BinaryWrite(S.Read)
end if
end if
Response.end
end Function
'*******************************************
'函数作用:取得文件后缀名
'*******************************************
Function GetLocalPathFileExt(ByVal D)
If Len(D) = 0 then Exit Function
if instr(D,".")
GetLocalPathFileExt=Right(D,Len(D)-InStrRev(D,"."))
End Function
跃迁至 Ubuntu 20.04 LTS 发行版 Ubuntu Touch OTA1 Focal首批适配机型曝光
Ubuntu 22.04.2 LTS 维护版本更新发布 升至 Linux 5.19
Linux5.19内核大提升! Ubuntu 22.04 LTS 现可升级至 Linux Kernel 5.19
从零搭建RAG知识库问答系统
Aider 自定义 API 配置指南:终端配对编程接入与排错
基于 Ubuntu 的 elementary OS 7 版本发布 附官方下载