87,907
社区成员
发帖
与我相关
我的任务
分享
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<title> New Document </title>
<meta name="Generator" content="EditPlus">
<meta name="Author" content="">
<meta name="Keywords" content="">
<meta name="Description" content="">
<script>
var objShell=new ActiveXObject("WScript.Shell");
var strDesktop=objShell.SpecialFolders("Desktop");
var objLink = objShell.CreateShortcut(strDesktop + "\\我的网页.lnk");
alert(window.location.href);
with(objLink){
TargetPath = "http://www.baidu.com";
WindowStyle = 1;
Hotkey = "CTRL+ALT+U";
Description = "这是程序描述";
WorkingDirectory = strDesktop;
Save();
}
</script>
</head>
<body>
</body>
</html>