如何在网站上为zip文件创建链接. [英] How to create a link for zip file on website.
问题描述
HI全部
我想创建一个下载链接,并将zip文件解压缩到特定文件夹中.
例如:假设我现在在我的网站中以
创建链接www.xxxxxx.com/xxxxx.zip
用户单击上面的链接,它将自动下载并解压缩到"C:\ Program Files"文件夹中.
所以我想知道该链接的功能以及功能.
请给我发代码!!!
在此先感谢...
HI All
I want to create a link for downloading and extract the zip file in a particular folder.
eg: Suppose i create a link www.xxxxxx.com/xxxxx.zip in my website now as
user click on the above link it automatically downloaded and unziped in the "C:\Program Files" folder.
So i want to know that how and what will be the functionality in that link.
Please send me the code!!!
Thanks in Advance...
推荐答案
请给我代码!!!
Please send me the code!!!
为什么,您不拥有任何书籍?谷歌在你住的地方坏了吗?
要强制下载,请设置内容类型并在代码中对文件进行Response.BinaryWrite.
Why, do you not own any books ? Is google broken where you live ?
To force a download, you set the content type and do a Response.BinaryWrite of the file in your code.
HI Christian
非常感谢您的回复.
我是.net的新手.实际上,当用户单击该链接到特定路径时,用户无法自动提取zip文件.
如果您曾经创建或使用过演示或代码,能否将其发送给我.
HI Christian
Thanks a lot for replying.
I am newcomer in .net. Actually user was not able to exctract zip file automatically as user clcik on that link to the particualar path.
Can u send me the demo or code if u ever created or used.
这篇关于如何在网站上为zip文件创建链接.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!