Code for creating web Desktop shortcuts using PHP or ASP

Source: Internet
Author: User

Create a new PHP document: Just remember the name, for example, export cut. php.
Content in the PHP document:
Code Copy code The Code is as follows: <? PHP
$ Shortcut = "[internetshortcut]
Url = http://www.jb51.net/
Idlist =
[{000214a0-0000-0000-c000-000000000046}]
Prop3 = 19,2
";
Header ("Content-Type: Application/octet-stream ");
Header ("content-Disposition: attachment; filename = script home. url ;");
Echo $ shortcut;
?>

to display the icon, make sure that favicon is in the root directory of the website. ICO file
upload to the website, visit address: such as: http://www.jb51.net/shortcut.php will be prompted to download a house named feet. save the URL File locally as a shortcut!
The following is the ASP implementation code: copy Code the code is as follows: <%
id = int (Request (" ID "))
If Id = "" Then Id = "1"
Title = request ("title ")
If title = "" Then Title = ""
cut = "[internetshortcut]" & vbcrlf
cut = Cut & "url = http://www.jb51.net/article/" & ID &". htm? Desktop "& vbcrlf
shortcut = shortcut &" idlist = "& vbcrlf
shortcut = shortcut &" [{000214a0-0000-0000-c000-00000046}] "& vbcrlf
shortcut = shortcut & shortcut & "prop3 = 19,2" & vbcrlf
shortcut = shortcut & "& vbcrlf
response. addheader "content-disposition", "attachment; filename =" & Title &". URL; "
response. contenttype = "application/octet-stream"
response. write shortcut
%>

note that the lock may be caused by security issues.
the following operations are required. URL "--" right-click -- "Property --" is unlocked to access the CHM file, which requires similar operations like the CHM file downloaded online.

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.