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

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.

Windows_7_Explorer_Commandbar.png

Advertisement

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.

Default_Command_Bar_Windows_Vista_7_Explorer.png

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:

Advertisement

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}

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:

TasksItemsSelected
TasksNoItemsSelected

TaskItemsSelected_Registry_Key.png

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:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\CommandStore\shell

CommandStore_Shell_Registry_Key.png

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:

Windows.selectall
Windows.Cut
Windows.Copy
Windows.Delete
Windows.rename
Windows.properties
Windows.Paste
Windows.undo
Windows.redo
Windows.menubar
Windows.previewpane
Windows.readingpane
Windows.navpane
Windows.folderoptions
Windows.layout
Windows.closewindow

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:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\TasksNoItemsSelected

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.

New_Command_Bar_Buttons_Windows_Explorer3.png

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

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}\TasksItemsSelected

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

Windows.Cut; Windows.Copy; Windows.Delete; Windows.rename; Windows.properties; 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.

New_Command_Bar_Buttons_Windows_Explorer2.png

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:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{5f4eab9a-6833-4f61-899d-31cf46979d49}

Documents Library:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{fbb3477e-c9e4-4b3b-a2ba-d3f5d3cd46f9}

Music Library:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{3f2a72a7-99fa-4ddb-a5a8-c604edf61d6b}

Pictures Library:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{0b2baaeb-0042-4dca-aa4d-3ee8648d03e5}

Videos Library:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{631958a6-ad0f-4035-a745-28ac066dc6ed}

Published in: Windows 7

About the author: Vishal Gupta (also known as VG) has been awarded with Microsoft MVP (Most Valuable Professional) award. He holds Masters degree in Computer Applications (MCA). He has written several tech articles for popular newspapers and magazines and has also appeared in tech shows on various TV channels.

Comments

NOTE: Older comments have been removed to reduce database overhead.

  1. dear VG,please add separate .reg file to add “copy”,”paste”,”cut” options in the command bar.thanks

  2. VG,
    I’m having a problem with your ‘Customize Command Bar in Windows Vista and 7 Explorer’ script. I know how to do it ;I did it manually & tested your easy .zip script; both worked. But now, on my new installation, I get following error:
    [Window Title]
    Registry Editor

    [Content]
    Cannot import C:\Users\MENTAL\Desktop\Customize Command Bar in Windows Vista and 7 Explorer\Add New Buttons.reg: Not all data was successfully written to the registry. Some keys are open by the system or other processes.

    [OK]

    It also seems to only allow me selected branch registry saves.Iget similar error when saving a Full Registry Export/Backup.
    Any ideas would be most appreciated.

  3. ^^ Try to take ownership of following Registry key:

    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderTypes\{5c4f28b5-f869-4e84-8e60-f11db97c5cc7}

  4. “Fix my Command Bar”?
    Well,you’ll find a hard time doing that…

    You’re a madman.Nobody fixes a Command Bar,nobody!

    A MADMAN? THIS IS VISHAL!!

    Props to Vishal.Props to ‘300’.
    How you do dat dat?

  5. Wait,check that. I got the ready-made registry scripts to all work.

    But something is wrong with my Registry Full or Selected Branch Backups.
    They appear to save just fine.They just aren’t to be imported or merged,without an error message.

    [Window Title]
    Registry Editor

    [Content]
    Cannot import C:\~~ REGISTRY RELATED ~~\~ REGISTRY ‘ FULL ‘ BACKUPS ~\F2.reg: Not all data was successfully written to the registry. Some keys are open by the system or other processes.

    [OK]

    I recorded a quick problem-solving video, where it shows the steps that cause this to happen.Although, I doubt if that would help you.You ‘prolly know the steps ,already.
    I mean,these backups used to work.
    I could Import a .reg file (full or selected branch) from inside Registry Editor. Or, I could Merge a .reg file from from outside Registry Editor.
    Anyway, I thank you for your help ,getting me this far.But, if you could look into this for me; I mean, I need my Registry to be able to be backed up.Well, backed up, AND RESTORED, if necessary.
    As always, I thank you for your service and this site.You know you rule, right?

  6. ^^ It looks a permission problem to me. Most probably a non-administrator account. You can try with built-in Administrator account.

  7. I am not quite sure what you are saying.

    I am running just one account, as administrator. I’ve read where it is a safer setup. Where you either make a non-administrator account to use primarily, and a second account, as administrator. Or, something like this. I tried and found it just too tedious, given the number of time I would need to use administrator’s rights.
    Please tell me that’s not what you’re saying.
    BTW, back before I was aware, that a Government Unlimited-Potential to Total Advancement program, or G.U.P.T.A. had been given the go-ahead to build these cpu-enhanced systems. Which, is how, ironical enough, around the time I stumbled across your spookishly-similar website.
    Just before that, I tried to start a fresh install on another computer, and found the same issues. Even though I had a, relatively new OS installed. One, with a single-user account, as administrator.
    I attempted the backup/restores to registry, rather quickly after installation. JIC, there was something happening later on, that was running an unknown/unseen service, that would prevent me ‘writing to the registry’.
    In case there is/was a pre-requisite I didn’t have , that would then enable me to write to registry from a backup .reg file, I continued, intermittently, to try.
    What is going on? It is driving me mad, NTM, impedeing my progress.
    You must have alot going on, and this ‘petty’ issue was well past tiresome, long ago.
    I emplore you. There is no one else. You have to understand. ‘ You are, THE ONE ‘

  8. Ahh.
    Yes, yes.
    Apologies, Majesty.

    But, didn’t matter, my OS was corrupted.

    It’s all good now. ^_^

  9. Your comments are great. I would like to add a Favorites to my Win7 Toolbar. Not the TASKBAR, the Toolbar.

    I spend all day going through files in my group’s directory structure. In WinXP, there was a Favorites item on the Toolbar. The locations of my files are 3-6 screens down in the Taskbar. In Win7, whenever I want to go to a Favorites location, I have to scroll the Taskbar all the way to the top to get to the Favorites there, where I use to be able to just click the Favorites item in the Toolbar.

    Do you know a way of adding Favorites back to the Windows (not Internet) Explorer or some button that will open Favorites?

  10. ^^ I think Favorites bar is still accessible in Menu bar. You can access Menubar by pressing ALT key in Windows Explorer.

  11. Your article is great!
    What I want to ask you, though, is how can you tell which folder types correspond to each of these long strings of numbers, like: {9efeadc8-c484-48fc-be40-973d419fe58a} or {94d6ddcc-4a68-4175-a374-bd584a510b78}, e.t.c.?

  12. Excellent article, thanks!!
    I have two questions:
    a) Can it be done with a non-admin user?
    b) Is it possible to add buttons for a single user? For example, using HKEY_CURRENT_USER or something like that.

  13. For whatever reason, it works in My Computer and Explorer Window but does not work for folders added to Libraries.

  14. Very well explained HowTo – I will try it later.

    However what I was looking for was a command line I could use to share a photo on Google+ – either by marking the photo and using the command in the command bar to create a Google+ post form with the photo attached. Or by adding the command line to a new entry in the SendTo drop-down menu of the photo. Similar to the G+ button on many web pages. If I only knew the command line to use …

  15. Actually in my internet explorer or tool bar are missing ,there is no tool bar so that i click on any bar to bring back my command bar menu bar and all other bar , please tell me how can i bring that back

  16. You are awesome Man. Such details and I love the Registry Ownership article.
    Thanks a lot.

  17. I’m having the same issue that babs is having. It works perfect if I navigate through “Computer” but not through “Libraries”. If anyone knows how to fix this, please let me know. Thank you.

  18. I know this is pretty old stuff. But, I still have a Vista. After searching Very Long and using many phrase. This site was the best of all. Here the problem. My Vista does not have Commandstore, nowhere. Did the “Find” in many form, nothing. Plus, my “Explorer” key is small. Like this “explorer”. I would like to do this Commandbar edit. I use the folders a lot. Seeing all those useless stuff there just bug me. I put the delete button in years ago. The only thing I want to see up there is the Views and the Delete. I did look at the Commandbar autohide ans wasn’t interested.

  19. Just to let you know. I went ahead and downloaded Resource Hacker. Seem to be everywhere. So I’ll give it a try.

  20. Can I add commands that only redirect to a specified folder?
    That would be very helpful for the Open/Save/Save As-Dialog in Windows and Office Application.

  21. The reason I was attracted to this blog, was my hope of adding a “Position widget” to the Command Bar (maybe as an extension to the “Zoom Icon”, or as an icon by itself)!… so that I would be able to reposition a webpage image (e.g., at the center of the screen) when it is displayed in Internet Explorer… and incrementally zoom the image (and unlike the regular staid zoom feature, with only two zoom capabilities)! Presently, images are positioned to the left side of the screen, and with a white background! And though I was able to change the background color to black (for contrast with the image displayed)… and through Internet Options > Appearance > Colors > uncheck, Use Windows Colors > Background… I was unable to locate a similar feature to effect this simple task of repositioning, and efficiently resizing web images!
    .
    To sum up… if you have any way of adding this widget through a Registry tweak, or by way of a downloaded widget from the Net, I would very much appreciate the help! Thanks!
    .
    Please!… no emails!

  22. Thank you,.
    It works in Explorer but when i create a new folder on my desktop, the commands aren’t there.
    Where do i go to add the commands on the bar on a created folder?
    Thank you!
    Fred

  23. All these buttons show in plain text. Would it be possible to add icons next to each text?

  24. I did this from the first day I got W7 (and thank you!).. but is there any way to do it for W11?? I have explorer patch to make the command bar look like W7 but trying this did not work to add delete etc… Thank you.

Leave a Comment

Your email address will not be published. Required fields are marked *

NOTE: Your comment may not appear immediately. It'll become visible once we approve it.