Set WshShell = WScript.CreateObject("WScript.Shell")
strDesktop = WshShell.SpecialFolders("Desktop") :
set oShellLink = WshShell.CreateShortcut(strDesktop & "\Internet Explorer.lnk")
oShellLink.TargetPath = "C:\Program Files\Internet Explorer\iexplore.exe" : '目标
oShellLink.Arguments =
http://www.sjhf.net :'程序的参数
oShellLink.WindowStyle = 1 :'参数1默认窗口激活,参数3最大化激活,参数7最小化
oShellLink.Hotkey = "" : '快捷键
oShellLink.IconLocation = "C:\Program Files\Internet Explorer\iexplore.exe, 0" : '图标
oShellLink.Description = "" : '备注
oShellLink.WorkingDirectory = "C:\Program Files\Internet Explorer\" : '起始位置
oShellLink.Save : '创建保存快捷方式
示例在桌面创建一个Internet Explorer.lnk,双击打开IE并跳转北亚首页。