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

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.jpgCopyAsPath_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


 

Attachments

Last edited:
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?
 

My Computer

Hi Tim,

None that I know of.

Sorry, :(
Shawn
 

My Computers

System One System Two

  • Operating System
    Windows 10 Pro 64-bit
    Manufacturer/Model
    Custom
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS ROG Maximus XI Formula Z390
    Memory
    64 GB (4x16GB) G.SKILL TridentZ RGB DDR4 3600 MHz (F4-3600C18D-32GTZR)
    Graphics card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    2 x Samsung Odyssey G7 27"
    Screen Resolution
    2560x1440
    Hard Drives
    1TB Samsung 990 PRO M.2, 4TB Samsung 990 PRO PRO M.2, 8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Mouse
    Logitech MX Master 3
    Keyboard
    Logitech wireless K800
    Internet Speed
    1 Gb/s Download and 35 Mb/s Upload
    Other Info
    Logitech Z625 speaker system, Logitech BRIO 4K Pro webcam, HP Color LaserJet Pro MFP M477fdn, APC SMART-UPS RT 1000 XL - SURT1000XLI, Galaxy S23 Plus phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Sound Card
    Conexant ISST Audio
    Monitor(s) Displays
    17.3" UHD IPS touch
    Screen Resolution
    3480 x 2160
    Hard Drives
    512 GB M.2 SSD
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).
 

My Computer

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?
 

My Computer

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
 

My Computer

System One

  • Manufacturer/Model
    Dell XPS L502X
    CPU
    Intel Core 7-2670QM 2.20GHz
    Motherboard
    0NJT03
    Memory
    8Gb DDR-3 (Samsung)
    Graphics card(s)
    NVIDIA
    Sound Card
    Realtek HA Audio, Intel (Display) Audio
    Monitor(s) Displays
    Generic PnP Monitor (1366x768)
Back
Top