------------ ASP ----------
<%
Response. contenttype = "application/OCTET-STREAM"
Response. addheader "content-disposition", "attachment; filename =" & "webpage. url"
Response. Write ("[internetshortcut]") & CHR (13)
Response. Write ("url = http://www.wangyeba.com") & CHR (13)
Response. Write ("idlist =") & CHR (13)
Response. Write ("[{000214a0-0000-0000-c000-000000000046}]") & CHR (13)
Response. Write ("prop3 = 19,2") & CHR (13)
Response. End
%>
----------- PHP ------------
<? PHP
$ Shortcut = & quot; [internetshortcut]
Url = http://116.la
Idlist =
[{000214a0-0000-0000-c000-000000000046}]
Prop3 = 19,2
& Quot ;;
Header (& quot; Content-Type: Application/octet-stream & quot ;);
Header (& quot; Content-Disposition: attachment; filename = 116 la URL navigation. url; & quot ;);
Echo $ shortcut;
?>
-----------Asp.net -------
Response. clearcontent ();
Response. charset = "gb2312 ";
String sitename = "Youjiang ";
Response. addheader ("content-disposition", "attachment; filename =" + sitename + ". url ");
Response. contentencoding = system. Text. encoding. getencoding ("gb2312 ");
Response. contenttype = "application/OCTET-STREAM ";
Response. Write ("[internetshortcut]/R/N ");
Response. Write ("url = http://www.youjiang.com/r/n ");
Response. Write ("idlist =/R/N ");
Response. Write ("[{000214a0-0000-0000-c000-000000000046}]/R/N ");
Response. Write ("prop3 = 19,2/R/N ");
Response. End ();
Chinese title Solution
Response. clearcontent ();
If (httpcontext. Current. Request. browser. browser! = "Ie ")
{
Httpcontext. Current. response. addheader ("content-disposition", "attachment; filename =/" .. url /"");
}
Else
{
String sitename = httputility. urlencode (system. Text. encoding. utf8.getbytes (". url "));
Response. addheader ("content-disposition", "attachment; filename =" + sitename );
}
Response. contenttype = "application/OCTET-STREAM ";
Response. Write ("[internetshortcut]/R/N ");
Response. Write ("url = http://www.youjiang.com/r/n ");
Response. Write ("idlist =/R/N ");
Response. Write ("[{000214a0-0000-0000-c000-000000000046}]/R/N ");
Response. Write ("prop3 = 19,2/R/N ");
Response. End ();
------------------