您的位置:首页 > 运维架构

Add Select All Option to the Context Menu in Windows Vista

2011-08-14 22:01 585 查看
From:http://www.winhelponline.com/blog/add-select-all-option-to-the-context-menu-in-windows-vista/

To select all files in a folder or in the Desktop, you use the CTRL + A keyboard shortcut. If you’re an avid mouse user, and need the select all functionality in the right click menu in Windows Vista, use this tweak. Note that this tweak does not work in Windows XP.

Adding Select All option to the context menu

1. Download selectall.zip and save it to the Desktop.

2. Unzip the archive and extract the contents to a folder.

3. Move the file selectall.vbs to the C:\Windows directory.

4. Double-click selectall.reg to add the Select All context menu option.

The Select All option is added to the right-click menu. This menu option will be seen when you right-click on the Desktop and when right-clicking on an empty area in a folder.



Undo Information

To remove the Select All option from the right-click menu, run the file undo.reg. Then delete the file selectall.vbs manually from the Windows directory.

More Information

The selectall.vbs powers the Select All option in the context menu. The script uses Windows Scripting Host (WSH) SendKeys method to send the keystroke CTRL + A for selecting all items in a folder. Here are the contents of the file selectall.vbs.

set oShell = WScript.CreateObject("WScript.Shell")
oShell.SendKeys "^a"


2 Comments

Works also in XP!

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\CLSID\{242BC78A-5586-46FD-B277-1340F62E3A0C}]
@=”Select All”

[HKEY_CLASSES_ROOT\CLSID\{242BC78A-5586-46FD-B277-1340F62E3A0C}\InProcServer32]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\
00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,\
64,00,6f,00,63,00,76,00,77,00,2e,00,64,00,6c,00,6c,00,00,00
“ThreadingModel”=”Apartment”

[HKEY_CLASSES_ROOT\CLSID\{242BC78A-5586-46FD-B277-1340F62E3A0C}\Instance]
“CLSID”=”{3f454f0e-42ae-4d7c-8ea3-328250d6e272}”

[HKEY_CLASSES_ROOT\CLSID\{242BC78A-5586-46FD-B277-1340F62E3A0C}\Instance\InitPropertyBag]
“CLSID”=”{13709620-C279-11CE-A49E-444553540000}”
“command”=”Select All”
“method”=”ShellExecute”
“Param1″=”C:\\WINDOWS\\selectall.vbs”

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\select all]
@=”{242BC78A-5586-46FD-B277-1340F62E3A0C}”

【抓屏】

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐