导航:首页 > 编程语言 > js调用迅雷

js调用迅雷

发布时间:2024-11-07 17:42:59

⑴ 如果调用网页JS代码,实现迅雷下载文件名全自动重命名~

download.aspx
string fileName = "";//客户端保存的文件名
string filePath = Server.MapPath("");//路径

FileInfo fileInfo = new FileInfo(filePath);
Response.Clear();
Response.ClearContent();
Response.ClearHeaders();
Response.AddHeader("Content-Disposition", "attachment;filename=" + fileName);
Response.AddHeader("Content-Length", fileInfo.Length.ToString());
Response.AddHeader("Content-Transfer-Encoding", "binary");
Response.ContentType = "application/octet-stream";
Response.ContentEncoding = System.Text.Encoding.GetEncoding("gb2312");
Response.WriteFile(fileInfo.FullName);
Response.Flush();
Response.End();

阅读全文

与js调用迅雷相关的资料

热点内容
农药登记许可证查询哪个网站 浏览:857
素材站用什么网站系统 浏览:173
ug如何用铰刀编程 浏览:647
三国志版本介绍 浏览:260
情侣用的定位app有哪些 浏览:244
怎么清楚苹果手机的健身数据 浏览:988
淘宝美工教程自学网 浏览:452
父子2006未删减版本 浏览:872
包头谁卖苹果6 浏览:504
化工企业停工有哪些文件通知要求 浏览:878
下载软件后文件夹在桌面 浏览:397
word文字编组 浏览:167
旅游策划的程序 浏览:519
哪些app能看象棋直播 浏览:819
小米4怎么传文件 浏览:210
手机中txt文件删除 浏览:404
怎么弄文件压缩包 浏览:686
linux文件重新命名 浏览:757
可以破解压缩文件密码的手机软件 浏览:836
苹果4s了解无限怎么不输密码 浏览:387

友情链接