how to make visitor to download application shortcut not open it as link

来源:百度知道 编辑:UC知道 时间:2024/06/07 03:48:23
what I have to do is uploading application shortcut to a web server,and the user can download it by click the link.

It is an intranet.The applications ".exe" are stored in different network drives.And all of their shortcut ".lnk" are save in a network drive called "H" drive.

I am trying to use JSP to solve the problem.so I need the code for it....

Thanks
the situation is:
I put all files which i need to upload them to web server into a folder called "files".This folder contains .doc(word), .xls(excel), .lnk(application shortcut).
For .doc files and .xls files,it is can be successfully downloaded when the user click a href "download".For .lnk files,it fails.

.lnk is just a link file linking to actual file.
it's no-sense for downloading .lnk file.

when you try to download a .link file from website, the internet explorer will try to link to the address contained in the .link file.
take a try to click right mouse,select "save target as..."