Add Select All option to the context menu in Windows

To select all files in a folder or 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, here is a registry tweak. This tweak adds the “Select All” option in the context menu for folder background and desktop.

Adding Select All option to the context menu

For Windows 10 only

  1. Copy the following contents to Notepad.
    Windows Registry Editor Version 5.00  
  2. Save the file with a .reg extension, say selectall.reg
  3. Double-click selectall.reg to apply the contents to the registry.

You’ll see the Select All option in the right-click menu in the desktop and folder background.

To remove the option, make another file named undo.reg with the following contents and run it.

Windows Registry Editor Version 5.00  


For Windows 8 & earlier

  1. Download and save it to the Desktop.
  2. Unzip the archive and extract the contents to a folder.
  3. Move selectall.vbs to the C:\Windows directory.
  4. Double-click selectall.reg to add the Select All context menu option.
  5. 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 right-clicking on an empty area in a folder.

How to Undo:  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 file powers the Select All option in the context menu. It uses the 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"

One small request: If you liked this post, please share this?

One "tiny" share from you would seriously help a lot with the growth of this blog. Some great suggestions:
  • Pin it!
  • Share it to your favorite blog + Facebook, Reddit
  • Tweet it!
So thank you so much for your support. It won't take more than 10 seconds of your time. The share buttons are right below. :)

Ramesh Srinivasan is passionate about Microsoft technologies and he has been a consecutive ten-time recipient of the Microsoft Most Valuable Professional award in the Windows Shell/Desktop Experience category, from 2003 to 2012. He loves to troubleshoot and write about Windows. Ramesh founded in 2005.

4 thoughts on “Add Select All option to the context menu in Windows”

  1. Works also in XP!

    Windows Registry Editor Version 5.00
    @="Select All"
    "command"="Select All"
    [HKEY_CLASSES_ROOT\Directory\Background\shellex\ContextMenuHandlers\select all]
  2. This works, but whenever I use select all now, my Logitech Setpoint program sends a splash screen message that says “Num Lock On.” Any idea how to fix this bug?


Leave a Comment