ASP implementation of the Web site desktop Shortcuts download

Source: Internet
Author: User

the use of ASP to achieve the Web site desktop shortcut download, is to access ASP files, the implementation of the download URL shortcuts, as we manually create on the desktop.  


Method: Create a new PHP document: The name of a good note on the line such as: shortcut.asp

Content in ASP Documentation:

<% 
Id=request ("id")  
Liehuo_net_url=request ("Liehuo_net_url")  
If Liehuo_net_url = "" Then liehuo_net_url= "Fire Academy"  
shortcut = "[Internetshortcut]" & vbcrlf 
Shortcut = shortcut & "Url=http://www.veryhuo.com/?desktop" & vbcrlf 
Shortcut = shortcut & "idlist=" & vbcrlf 
Shortcut = shortcut & "Iconfile=http://www.veryhuo.com/favicon.ico" & vbcrlf 
Shortcut = Shortcut & "Iconindex=1" & vbcrlf 
Shortcut = shortcut & "[{000214a0-0000-0000-c000-000000000046}]" & vbcrlf& nbsp
Shortcut = shortcut & "prop3=19,2" & vbcrlf 
Shortcut = shortcut & "" & vbcrlf 
R Esponse. AddHeader "Content-disposition", "Attachment;filename=" &liehuo_net_url& ". url;"  
Response.ContentType = "Application/octet-stream" &NBSP;
Response.Write shortcut 
%>

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.