How to Customize Command Bar in Windows 7 Explorer? Add Cut, Copy, Paste and Other Useful Buttons

share this: facebook | twitter | google+ | reddit | tell a friend

UPDATE: This tutorial has been updated to provide Windows 8 style one-click access for turning on/off the Navigation pane, Preview pane, and Details pane, etc in Windows 7.

SUMMARY: After following this tutorial, you'll be able to add Cut, Copy, Paste, Delete, Rename, Select all, Undo, Redo, Properties, Menu bar, Details pane, Preview pane, Navigation pane and Close buttons in Windows Explorer's Command bar aka Folder band or Toolbar in Windows 7.

PS: If you find the instructions given in this tutorial a bit hard to follow, you can use the ready-made registry script given here.

Windows 7 comes with a new re-designed Explorer which is pretty much different from Windows XP Explorer. Windows XP Explorer comes with Standard toolbar which allows us to easily add/remove buttons. On the other hand, Windows 7 Explorer comes with re-designed Command bar which is not customizable. You can't add/remove buttons from it.


Although Microsoft doesn't provide any option to customize the Command bar in Windows Explorer, you can use a Registry trick to add/remove buttons from it.

In this tutorial, we'll tell you how to add/remove buttons from Windows Explorer's Command bar in Windows 7 using Windows Registry.

STEP 1. Type regedit in RUN or Start menu search box and press Enter. It'll open Registry Editor.

STEP 2. Now go to following key:


We'll use the above mentioned key to add our desired buttons in Command bar.

PS: Before we go further, some IMPORTANT things to KNOW:

a. Windows uses the "FolderTypes" registry key mentioned in Step 2 to show Command bar buttons in each and every folder in Windows Explorer. That's why you see different buttons in command bar for different types of folders.

b. Windows changes these buttons dynamically based upon the user-defined event. For example, it shows different button when you open a folder but dynamically changes those buttons if you select an item in that folder.

c. These dynamic button changes occur based upon 2 Registry keys: TasksItemsSelected and TasksNoItemsSelected.

d. When you open a folder, the button set is shown as defined in TasksNoItemsSelected key and when you select an item, the button set is shown as defined in TasksItemsSelected key.

e. In this tutorial, we'll use the above mentioned 2 registry keys to add our desired buttons in Command bar.

Lets come back to our tutorial!

STEP 3. Under {5c4f28b5-f869-4e84-8e60-f11db97c5cc7} key, create following 2 keys:



NOTE: If you get an error message that you don't have permission to write to registry, it means you'll need to take permission on the key. You can use following simple steps to take permission:

[Guide] How to Take Ownership (Permission) of a Registry Key in Windows?

Now you'll be able to create new keys.

STEP 4: Now last thing to do! You'll need to set value of "(Default)" present in right-side pane to tell Windows which buttons should be shown in Explorer.

As we discussed earlier, we'll use "TasksItemsSelected" key to show buttons when an item is selected in Explorer and "TasksNoItemsSelected" key when no item is selected i.e. we open a folder.

To set the value of "(Default)", we'll use built-in Windows commands which are stored in "CommandStore" in Registry. If you can remember, we used the same key in our Cascading context menu tutorial.

In Registry editor, go to following key to get a list of all built-in commands which can be used to show buttons in Command bar:



There are many Windows built-in commands listed in above mentioned key like Windows.cut, etc. Following are some useful and interesting commands which you can use in Step 5:


All the above mentioned commands do what their names suggest.

STEP 5. You just need to select the new keys created in Step 3 one by one and set value of "(Default)" in right-side pane to any of above mentioned built-in Windows commands.

If you want to add more than one commands, you can separate them using semi-colon (;).

a. Go to following key to add commands when you open a folder and don't select any item:


In right-side pane, set value of (Default) to:

Windows.selectall; Windows.Paste; Windows.undo; Windows.redo; Windows.menubar; Windows.previewpane; Windows.readingpane; Windows.navpane; Windows.closewindow

PS: Above are our favorite commands, you can add or remove the desired command according to your requirements.

It'll add "Select all, Paste, Undo, Redo, Menu bar, Details pane, Preview pane, Navigation pane and Close" buttons to Windows Explorer's Command bar. All these new buttons will be visible when you open a folder and don't select any item.


b. Now go to following key to add commands when you select an item in a folder:


In right-side pane, set value of (Default) to:

Windows.Cut; Windows.Copy; Windows.Delete; Windows.rename;; Windows.closewindow

PS: Above are our favorite commands, you can add or remove the desired command according to your requirements.

It'll add "Cut, Copy, Delete, Rename, Properties and Close" buttons to Windows Explorer's Command bar. All these new buttons will become visible when you select an item in a folder.


That's it. You can add/remove built-in commands from the value of (Default) key to add/remove buttons from Command bar in Windows Explorer.

PS: You might notice that "New folder" button is always displayed at the end of Command bar. If you want to show it before your custom buttons, simply go to "Windows.newfolder" key under "HKEY_LOCAL_MACHINE\...\CommandStore\shell" key mentioned in Step 4 and delete "Position" string from right-side pane. You'll need to take permission on the key before deleting the string value.

NOTE: The above mentioned method will add the new buttons for normal folders in Explorer. If you want to add the buttons in Library folders as well, you'll need to repeat the same method in following keys:

Main Library folder:

Documents Library:

Music Library:

Pictures Library:

Videos Library:

Posted by: | Categories: Windows 7

Other similar articles that may interest you


Leave a Comment