php和asp添加到桌面快捷方式代码

php版 添加到桌面快捷方式代码

<?php
$Shortcut = "[InternetShortcut]
URL=http://film.8167.org/
IDList=
IconFile=http://film.8167.org/favicon.ico
[{000214A0-0000-0000-C000-000000000046}]
Prop3=19,2
";
Header("Content-type: application/octet-stream");
header("Content-Disposition: attachment; filename=万达电影网.url;");
echo $Shortcut;
?>

asp版 添加到桌面快捷方式代码

<%
id=int(request("id"))
if id="" then id="1"
title=request("title")
If title="" Then title="万达电影网"
Shortcut = "[InternetShortcut] " & vbCrLf
Shortcut = Shortcut & "URL=http://film.8167.org/"&id&".htm?desktop" & vbCrLf
Shortcut = Shortcut & "IDList= " & vbCrLf
Shortcut = Shortcut & "IconFile=http://film.8167.org/favicon.ico" & vbCrLf
Shortcut = Shortcut & "[{000214A0-0000-0000-C000-000000000046}] " & vbCrLf
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
%>