ASP代码如下:
index.asp
<%
Response.ContentType="APPLICATION/OCTET-STREAM"
Response.AddHeader "Content-Disposition","attachment;filename="&"我的桌面图标.url"
Response.Write("[InternetShortcut]")&Chr(13)
Response.Write("URL=
http://www.baidu.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
%>
添加在网页中,在服务器中运行或用aspweb.exe模拟一下环境