• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Context Menu Copy as Path - Add or Remove from Context Menu

Brink

Staff member
mvp
Copy as Path - Add or Remove from Context Menu How to Add or Remove "Copy as Path" from the Vista and Windows 7 Context Menu
This will show you how to add or remove Copy as Path from the context menu for all users on the computer.
Published by Brink Category: Context Menu 
#1
ByLine
How to Add or Remove "Copy as Path" from the Vista and Windows 7 Context Menu
Synopsis
This will show you how to add or remove Copy as Path from the context menu for all users on the computer.
How to Add or Remove "Copy as Path" from the Vista and Windows 7 Context Menu

information   Information
This will show you how to add or remove Copy as Path from the context menu for all users on the computer. By default, Copy as Path is added to the context menu.
Note   Note
To see what and how to use Copy as Path, see: How to Copy the Full Path of a File or Folder in Vista and Windows 7

EXAMPLE: "Copy as Path" added and removed from the Context Menu
NOTE:
By default, you must press and hold Shift and right click on the file or folder to see Copy as Path.

CopyAsPath_Added.jpg CopyAsPath_Removed.jpg



METHOD ONE
Using a REG File Download

1. To Add "Copy as Path" to Context Menu
A) Click on the download button below to download the file below.​
Add_Copy_as_Path_Menu.reg
download

B) Go to step 3.​

2. To Remove "Copy as Path" to Context Menu
A) Click on the download button below to download the file below.​
Remove_Copy_as_Path_Menu.reg
download

3. Click on Save, and save the .reg file to the Desktop.​
4. Right click on the downloaded .reg file and click on Merge.​
5. Click on Run, Continue (UAC-Vista) or Yes (UAC-Windows 7), Yes, and then OK when prompted.​
6. When done, you can delete the downloaded .reg file if you like.​




METHOD TWO
Manually Using Registry Editor

1. Open the Start Menu, then type regedit in the search boxand press Enter.​
2. If prompter by UAC, then click on Continue (Vista) or Yes (Windows 7).​
3. In regedit, go to: (See screenshot below)​
Code:
HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex\ContextMenuHandlers\CopyAsPathMenu
CopyAsPath_Added_Reg.jpg

4. To Remove Copy as Path to Context Menu
A) In the right pane, right click on (Default) and click on Modify. (See screenshot above)​
B) Clear and leave the field empty and click OK. (See screenshot below)
Removed_Modify.jpg

C) Your registry will now look like this. (See screenshot below)​
CopyAsPath_Removed.jpg

D) Go to step 6.​

5. To Add Copy as Path to Context Menu
A) In the right pane, right click on (Default) and click on Modify. (See screenshot above)​
B) Copy and Past the value below and click OK. (See screenshot below)
{f3d06e7c-1e45-4a26-847e-f9fcdee59be0}
CopyAsPath_Added_Modify.jpg

C) Your registry will now look like this. (See screenshot below step 3)​

6. Close regedit.​
That's it,
Shawn


Related Tutorials


 
Last edited:
#2
Is there a way to add "Copy as Path" permanently to the context menu so that you don't have to hold down shift in order for it to appear?
 

sidney1st

Member
Vista Guru
#5
You can add it permanently on the files context menu using clip.exe

For example In HKCR\*\Shell\ you can add the Key: CopyAsPath with value= Copy as Path for example, then from CopyAsPath key, you create a new Command Key with value: %comspec% /c echo "%1"|clip
That should do the job (i can make a reg file if you wish).
 
#6
You can add it permanently on the files context menu using clip.exe

For example In HKCR\*\Shell\ you can add the Key: CopyAsPath with value= Copy as Path for example, then from CopyAsPath key, you create a new Command Key with value: %comspec% /c echo "%1"|clip
That should do the job (i can make a reg file if you wish).
I kinda lost here.. could you please create the reg file for us?
 
#7
I kinda lost here.. could you please create the reg file for us?
here's the reg, make sure the path to the .bat is correct for you...

custompubliccopypath.reg
Code:
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell\copypath]
@="Copy p&ath"


[HKEY_CLASSES_ROOT\*\shell\copypath\command]
@="cmd /c C:\\Windows\\myBat\\copypath.bat \"%1\""

in reg-files, the '\' is qualified, so c:\program files becomes C:\\program files

The batch file (for me, so I can run as command like notepad, mspaint, calc... without path edits) is stored @
C:\Windows\myBat\copypath.bat

copypath.bat
Code:
echo %~1|  clip
If you want, you can put the .bat anywhere... you can put a (shortcut to the .bat) .lnk in C:\windows subdir
(ie C:\Windows\mySysLnks) and change the lnk's properties so it runs minimised (no visible cmd-prompt : )

zMSFmZ4.jpg