建立桌面快捷方式
var e = getDomainName();//路径
try {
var n = new ActiveXObject("WScript.Shell"),
t = n.CreateShortcut(n.SpecialFolders("Desktop") + "\\测试.url");
t.TargetPath = e,
t.Save()
} catch(i) {
alert("快捷方式创建失败,浏览器不支持!")
}
怎么不管用?????
您好,您贴的代码和平台没有关系,请百度。
页:
[1]