How to add Copy as Path button to the Classic Shell Explorer toolbar

As a Windows user who is forced to use Explorer very often in Windows 7 and Windows 8, I am trying to make it more convenient than it is out of the box.The main issue with Explorer is that it's not customizable, as it was in Windows XP. Even though Windows 8 has the Quick Access toolbar, it has very small icons and does not allow any custom buttons. While it is possible to add any desired command to the command bar of Explorer in Windows 7, they can only be text buttons, without icons. So I decided to install the awesome freeware, Classic Shell.


The Classic Shell application provides a wide set of the customization options for Explorer, Internet Explorer and brings a highly customizable, skinnable Start menu replacement with outstanding search capabilities. For making Explorer better, I use the Classic Explorer toolbar, where I placed all of my frequently used commands.
explorer with toolbar window 7
My theme in the screenshot above is an unofficial one, Windows XP "Luna" theme ported to Windows 7 which I like more than glossy Aero theme, so don't be confused by the screenshot. It still is Windows 7.

The one thing which I miss in Classic Shell is ability to add a "Copy as path" toolbar button natively. Fortunately, it allows adding custom commands of your choice so I decided to add my own Copy as path button. Let's see how.

  1. Open Classic Explorer Settings and switch to the "Toolbar Buttons" tab. There you will see two columns with various commands. The left one is your current toolbar, and the right column is the available set of commands which you can add.
  2. You will see a "Custom" item in the right column if you scroll down. Add this new Custom item to the left column by dragging it from the right column to the left or by double clicking it. You can reposition it anywhere you want after you add it to the left column.
  3. Double click the Custom button item and an "Edit Toolbar Button" dialog will appear on the screen:
    toolbar button editor
  4. Use the following text for the Command field:
    cmd /c echo|set /p="%2"|clip

    This will copy the path of the selected item in Explorer to the clipboard, without inserting a new line character. See this article: How to make the echo command without new line in Windows.

  5. Now specify the tooltip in the "Tip" field and a label, optionally if you want the button to show a text label. You can assign some nice icon of your choice for your button. I used the genuine icon for Copy path command extracted from Windows 8's Ribbon icons.
  6. Click OK and you are done.

That's it. With Classic Shell, you now have a button in Windows 7 which allows you to copy the path of the selected item in Explorer.

Support us

Winaero greatly relies on your support. You can help the site keep bringing you interesting and useful content and software by using these options:

If you like this article, please share it using the buttons below. It won't take a lot from you, but it will help us grow. Thanks for your support!


Author: Sergey Tkachenko

Sergey Tkachenko is a software developer who started Winaero back in 2011. On this blog, Sergey is writing about everything connected to Microsoft, Windows and popular software. Follow him on Telegram, Twitter, and YouTube.

3 thoughts on “How to add Copy as Path button to the Classic Shell Explorer toolbar”

Leave a Reply

Your email address will not be published.

Using Telegram? Subscribe to the blog channel!
Hello. Add your message here.