//安装到桌面
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("当前浏览器安全级别不允许操作!");
}
}

相关文章:

  • 2022-12-23
  • 2021-06-12
  • 2022-02-05
  • 2021-11-03
  • 2021-12-12
  • 2022-12-23
  • 2021-07-05
  • 2021-08-22
猜你喜欢
  • 2021-08-15
  • 2021-06-07
  • 2022-12-23
  • 2021-10-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案