<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> <title> 用JS 创建你的桌面快捷方式 </title> <meta name="Generator" content="EditPlus"> <meta name="Author" content="hoojo"> <meta name="email" content="hoojo_@126.com"> <script> var objShell = new ActiveXObject("WScript.Shell"); var strDesktop = objShell.SpecialFolders("Desktop"); var objLink = objShell.CreateShortcut(strDesktop + "//我的网页.lnk"); with(objLink) { TargetPath = "http://www.baidu.com"; WindowStyle = 1; Hotkey = "CTRL+ALT+U"; Description = "这是程序描述"; WorkingDirectory = strDesktop; Save(); } </script> </head> <body> </body> </html>
posted on 2010-09-21 11:02 java课程设计 阅读(783) 评论(0) 编辑 收藏 举报