• 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
Oklahoma, USA

Posts
32,348
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:

My Computers

System One System Two

  • Operating System
    Windows 10 Pro 64-bit
    Manufacturer/Model
    Custom
    CPU
    Intel i7-8700K 5 GHz
    Motherboard
    ASUS Maximus X Code Z370
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    250GB Samsung 960 EVO M.2,
    256GB OCZ Vector,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Mouse
    Logitech MX Master
    Keyboard
    Logitech wireless K800
    Internet Speed
    300 Mb/s Download and 30 Mb/s Upload
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Arris SB6190 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Lumia 1520 phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Graphics card(s)
    NVIDIA GeForce 940MX
    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

Brink

Staff member
mvp
Oklahoma, USA

Posts
32,348
#3
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 Maximus X Code Z370
    Memory
    16 GB (8GBx2) G.SKILL TridentZ DDR4 3200 MHz
    Graphics Card(s)
    ASUS ROG-STRIX-GTX1080TI-O11G-GAMING
    Sound Card
    Integrated Digital Audio (S/PDIF)
    Monitor(s) Displays
    3 x 27" Asus VE278Q
    Screen Resolution
    1920x1080
    Hard Drives
    250GB Samsung 960 EVO M.2,
    256GB OCZ Vector,
    6TB WD Black WD6001FZWX
    8TB WD MyCloudEX2Ultra NAS
    PSU
    Seasonic Prime Titanium 850W
    Case
    Thermaltake Core P3
    Cooling
    Corsair Hydro H115i
    Mouse
    Logitech MX Master
    Keyboard
    Logitech wireless K800
    Internet Speed
    300 Mb/s Download and 30 Mb/s Upload
    Other Info
    Logitech Z625 speaker system,
    Logitech BRIO 4K Pro webcam,
    HP Color LaserJet Pro MFP M477fdn,
    Linksys EA9500 router,
    Arris SB6190 cable modem,
    APC SMART-UPS RT 1000 XL - SURT1000XLI,
    Lumia 1520 phone
  • Operating System
    Windows 10 Pro
    Manufacturer/Model
    HP Envy Y0F94AV
    CPU
    i7-7500U @ 2.70 GHz
    Memory
    16 GB DDR4-2133
    Graphics card(s)
    NVIDIA GeForce 940MX
    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

sidney1st

Member
Vista Guru
Paris

Posts
968
#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).
 

My Computer

ruffstuff

New Member
Posts
1
#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?
 

My Computer

#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
 

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)