网页右键中的自定义命令,是调用指定网页脚本,然后调用创建快捷方式的脚本或程序。创建两个文件后,将注册表文件导入后即可
=================================================c:/test/createshortcut.html=================================================<SCRIPT language=VBScript> SET ieParentWin = external.menuArguments ieSrcURL = ieParentWin.location.href ieTitle = ieParentWin.document.title set WshShell = CreateObject("WScript.Shell") strDesktop = WshShell.SpecialFolders("Desktop") set oShellLink = WshShell.CreateShortcut(strDesktop & "/" & ieTitle & ".lnk") oShellLink.TargetPath = ieSrcURL oShellLink.WindowStyle = 1 oShellLink.WorkingDirectory = strDesktop oShellLink.Save</Script>
=================================================c:/test/createshortcut.reg=================================================Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER/Software/Microsoft/Internet Explorer/MenuExt/发送到桌面快捷方式]"Contexts"=dword:00000001@="c://test//createshortcut.htm"