当前位置:K88软件开发文章中心编程语言AspAsp01 → 文章内容

Asp创建网页桌面快捷方式的代码

减小字体 增大字体 作者:wangsdong     来源:asp编程网  发布时间:2018-12-30 8:29:30

asp实现在用户桌面创建一个快捷方式,这样用户可以直接双击这个快捷方式打开你的网站。

功能:Asp创建网页桌面快捷方式的代码
来源:www.K88.NET
作者:wangsdong
原创文章,转载请保留此信息

代码如下:
<
%
title="ASP编程网asp教程,net教程,asp贴吧,专业asp编程网站"
Shortcut = "[InternetShortcut] " &
vbCrLf
Shortcut = Shortcut &
"URL=http://www.K88.NET" &
vbCrLf
Shortcut = Shortcut &
"IDList= " &
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
%>


把上面的代码保存为asp文件,运行就可以看到效果了。
如果你要想将你的asp网站的图标出现,请先确保网站根目录中有 favicon.ico 文件。



Asp创建网页桌面快捷方式的代码