复制代码 代码如下:
function todesktop(surl,sname){
try{
var wshshell = new activexobject(wscript.shell);
var ourllink = wshshell.createshortcut(wshshell.specialfolders(desktop) + \\ + sname + .url);
ourllink.targetpath = surl;
ourllink.save();
}catch(e){
alert(当前ie安全级别不允许操作!);
}
}
创建快捷方式
复制代码 代码如下: