Can "Copy as path" be enabled permanently without Shift

nuspieds

New member
I am always using the "Copy as path" option and it is a pain to always have to press Shift to get this and some other additional context-sensitive menu options.

Is there a way to enable the "Copy as path" option so that it is there in the regular right-click context menu, with no pressing of the Shift key required?

Thanks!
 

My Computer

OS
Windows 7 Ultimate x64
Not sure what exactly that does but you CAN add any context menu items you want to the normal right click context menu for explorer.

Unfortuantely it reguires registry editing.

If you google for the instructions for creating the very common "Command Promt From Here" context menu item, you could adapt that to change the name and the function that you are looking for. "Power Toys" may also allow you to edit context menu items for explorer.

From the web:
  1. Navigate in your Registry to HKEY_LOCAL_MACHINE/Software/Classes/Folder/Shell

    and create a key called "Command Prompt" without the quotes.
  2. Set the default string to whatever text you want to appear in the right-click menu.
  3. Create a new key within your newly created command prompt named "command," and set the default string to cmd.exe /k pushd %1You may need to add %SystemRoot%\system32\ before the cmd.exe if the executable can't be found.
  4. The changes should take place immediately. Right click a folder and your new menu item should appear.
 

My Computer

Computer Manufacturer/Model Number
Scratch built
OS
Windows 7 x64 Ultimate
CPU
i7 960
Motherboard
Asus P6X58D
Memory
12 Gig Corsair Dominator
Graphics Card(s)
Nvidia 480
Sound Card
Maudio Delta 44 + breakout box
Monitor(s) Displays
Dell UltraSharp U2410 24in and Samsung 21 dual monitors
Screen Resolution
1920x1200 and 1280x1024
Hard Drives
Primary: Intel X-25M G2 160G SSD
Secondary: Segate baracuda 1.0 TB
HDs in AHCI mode.
PSU
Corasair TX850
Case
Cooler Master HAF
Cooling
Corsair H50
Keyboard
Logitech G15 + N52 game pad
Mouse
Logitech MX518
Internet Speed
15kbs down 4.5kbps up
Other Info
WEI 7.6
CPU & RAM 7.6
Graphics 7.9
Hard disk 7.7
"Copy as path" copies the filename with its full path (i.e., "c:\...\myfile.txt") into the clipboard. It doesn't launch a program.

To get "Copy as path" you have to press shift before you right-click. I use this feature often, so I don't want to have to press shift all the time. I want it there when I just right-click.
 

My Computer

OS
Windows 7 Ultimate x64
You could try installing SendTo Toys from Gabriele Ponti. This addon enhances your SendTo Context Menu with a lot of extra options. One of those is and option to "Copy as Name", which copies the path for whatever file you right click.


Please rep if you think this was helpful.
 

My Computers

System One System Two

  • Computer type
    Laptop
    Computer Manufacturer/Model Number
    Custom
    OS
    Windows 10 Professional 64-Bit
    CPU
    Intel Core i7 8700K
    Motherboard
    Asus Maximus X Code
    Memory
    G.Skill TridentZ RGB DDR4 4000 F4-4000C18D-16GTZR
    Graphics Card(s)
    Zotac GeForce GTX-1660 Ti AMP 6GB
    Sound Card
    ROG SupremeFX S1220 (Onboard)
    Monitor(s) Displays
    Dell UP2716D
    Screen Resolution
    2560x1440
    Hard Drives
    Samsung 980 Pro PCIe NVMe 500GB
    Samsung 970 Evo PCIe NVMe 250GB
    Samsung 860 Evo SATA III 2TB
    WD Black WD2003FZEX 2TB x 3
    ODD - GH24NSC0
    PSU
    Coolermaster V1000
    Case
    Corsair Obsidian 450D
    Cooling
    Corsair H115i - Corsair SP140 Red x 2
    Keyboard
    Logitech G213
    Mouse
    Logitech G102
    Internet Speed
    100 Mbps (Supposedly) - Asianet India FTTH
    Antivirus
    Avast Free!
    Browser
    Maxthon Cloud Browser 5.xx
    Other Info
    Asus FX-553VD (960 Evo, 860 Evo, 16GB)
    Samsung Galaxy C9 Pro
    Canon EOS 70D
  • Computer type
    Laptop
    System Manufacturer/Model Number
    Asus FX503VD
    OS
    Windows 10 Pro x64
    CPU
    Intel Core i7 7700HQ
    Memory
    2 x 8GB Samsung DDR4 2400
    Graphics Card(s)
    GTX 1050
    Screen Resolution
    1920 x 1080
    Hard Drives
    Samsung 960 Evo PCIe NVMe 250GB Boot
    Samsung 840 Pro Series 256 GB SSD (MZ-7PD256BW);
Using SendTo Toys is no better and probably worse than shift+right click because it requires two clicks.

I'm trying to save clicks and just have the "Copy as path" appear in the standard right-click menu, without any additional keystrokes or clicks. This is a frequent command I use, so that's why I want it on the standard right-click menu.

If I have to navigate further into some other menu, then that is only slowing me down more than pressing shift+right click.
 

My Computer

OS
Windows 7 Ultimate x64
Maybe try THIS?
 

My Computers

System One System Two

  • Computer type
    Laptop
    Computer Manufacturer/Model Number
    Custom
    OS
    Windows 10 Professional 64-Bit
    CPU
    Intel Core i7 8700K
    Motherboard
    Asus Maximus X Code
    Memory
    G.Skill TridentZ RGB DDR4 4000 F4-4000C18D-16GTZR
    Graphics Card(s)
    Zotac GeForce GTX-1660 Ti AMP 6GB
    Sound Card
    ROG SupremeFX S1220 (Onboard)
    Monitor(s) Displays
    Dell UP2716D
    Screen Resolution
    2560x1440
    Hard Drives
    Samsung 980 Pro PCIe NVMe 500GB
    Samsung 970 Evo PCIe NVMe 250GB
    Samsung 860 Evo SATA III 2TB
    WD Black WD2003FZEX 2TB x 3
    ODD - GH24NSC0
    PSU
    Coolermaster V1000
    Case
    Corsair Obsidian 450D
    Cooling
    Corsair H115i - Corsair SP140 Red x 2
    Keyboard
    Logitech G213
    Mouse
    Logitech G102
    Internet Speed
    100 Mbps (Supposedly) - Asianet India FTTH
    Antivirus
    Avast Free!
    Browser
    Maxthon Cloud Browser 5.xx
    Other Info
    Asus FX-553VD (960 Evo, 860 Evo, 16GB)
    Samsung Galaxy C9 Pro
    Canon EOS 70D
  • Computer type
    Laptop
    System Manufacturer/Model Number
    Asus FX503VD
    OS
    Windows 10 Pro x64
    CPU
    Intel Core i7 7700HQ
    Memory
    2 x 8GB Samsung DDR4 2400
    Graphics Card(s)
    GTX 1050
    Screen Resolution
    1920 x 1080
    Hard Drives
    Samsung 960 Evo PCIe NVMe 250GB Boot
    Samsung 840 Pro Series 256 GB SSD (MZ-7PD256BW);
Thanks for the reference...it was a good try, but it doesn't work in Win 7...well, not on my system anyway.

I'm thinking that perhaps it is just another registry value in Win 7. I'll do some hunting around to see if I can find anything. It's definitely a good lead.

Thanks again.
 

My Computer

OS
Windows 7 Ultimate x64

My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
I tried this "Copy As Path" and it works in Win7. It does what you want it to do.

Read the instructions carefully as there are two methods available.

Here's the site for the info:
HTML:
http://www.winhelponline.com/blog/add-copy-as-path-option-to-the-context-menu-in-windows-xp/
You need to download Clip.exe from Microsoft:
HTML:
ftp://ftp.microsoft.com/Services/TechNet/samples/PS/Win98/Reskit/FILE/CLIP.EXE
and copypath.vbs from the site you are on:
HTML:
http://www.winhelponline.com/blog/wp-content/uploads/copypath.vbs
Put both of them in the Windows folder. Run copypath.vbs. You may have to "Run as Administrator" or elevate it, but I have UAC turned off and did not encounter any problems.

Go to this key in the Registry:

[HKEY_CLASSES_ROOT\Allfilesystemobjects\shell\CopyPath]

and delete "Extended" to show "Copy As Path" all the time on the right click menu.


You should now have "Copy As Path" in the upper portion of the right click menu. The one built into Win7 is lower on the right click menu and only shows when you press Shift.

Haven't tried the reg file method in Win7, but did with XP and a command window comes up. The preferred method is using the vbs file and then deleting the "Extended" key.

Edit: The only problem I've encountered with using this is that I cannot copy the path of multiple files or folders.

The Windows 7 "Copy As Path" can copy the path of multiple files or folders.
 
Last edited:

My Computers

System One System Two

  • Computer type
    Laptop
    Computer Manufacturer/Model Number
    Dell Precision 7510
    OS
    W7PRO
    CPU
    Intel i7-6820HQ @ 2.7GHz
    Memory
    16GB
  • Computer type
    Laptop
    OS
    W7Pro
Thanks, R A.

I found an answer from another site and I was referred ot the following site for the solution:

Copy File Path and Name using Windows Explorer Context Menu Extensions

So I used that and it worked for me.

The ability to copy path multiple-selected files is cool, but it's something that I have yet to use. For me, pressing shift+right-click to get that functionality if ever needed it would be perfectly fine.
 

My Computer

OS
Windows 7 Ultimate x64
Hotkey Copy As Path

Also you can use this AutoHotKey script

Code:
; <COMPILER: v1.0.47.6>
#SingleInstance Ignore
#NoEnv
SendMode Input
SetWorkingDir %A_ScriptDir%

Menu Tray,NoStandard
Menu Tray,Add,Donate,DoDonate
Menu Tray,Add
Menu Tray,Add,Quit,DoQuit
Menu Tray,Tip,Copy As Path

Result := _EmptyWorkingSet()

#IfWinActive,ahk_class CabinetWClass
MButton::
Gosub,DoCE
Return
#IfWinActive,ahk_class ExploreWClass
MButton::
Gosub,DoCE
Return


DoCE:
clipboard = ; clear clipboard
Send ^c
ClipWait, 2
clipboard = %clipboard%
Return

DoDonate:
Run,"http://www.favessoft.com/donate.html"
Return

DoQuit:
ExitApp

_EmptyWorkingSet()
{
  Return DllCall("psapi.dll\EmptyWorkingSet", "UInt", -1)
}
Select files/folders in explorer and press the middle mouse button. Then you can paste the list into an editor or whatever. As it is now, it doesn't wrap paths with a space with double quotes. You only need that for command line params anyway. If you want that just add a couple of lines of AutoHotKey. Me, I hate they way AHK handles strings(not double quotes as in most other programming languages,) so I do as little as possible to get stuff to work. AHK can do a lot with a few lines when it comes to a hotkey for the tray though. You can't beat it for small do it yourself little gizmos like this.

(The DoCE is just named that because I pasted it out of my HalfShell script which opens selected folders in a 32 bit shell on 64 bit systems. You can change it to something else if you like.)
 

My Computer

Computer Manufacturer/Model Number
HP Media Center
OS
Windows 7 32 bit
CPU
AMD 5200+ dual core
Memory
2 GB
Graphics Card(s)
NVidia GeForce 6150SE 128 MB
Monitor(s) Displays
CRT
Screen Resolution
1280x1024
Hard Drives
500 GB Sata internal :

SIIG USB 3.0 docking stations w/WD Caviar Black 6 Gb/s drives
Keyboard
PS/2
Mouse
PS/2 Wheel Mouse
Other Info
SIIG USB 3.0 PCIexpress card.
I downloaded and installed the solution nuspieds found (see last message). Compared to Shift-RightClick by Microsoft it has the advantage, that the pathname does not get hyphenated in the clipboard.

This seems a lot more practical because typing opening hyphen - paste - typing closing hyphen is a lot more practical than paste - position cursor at opening hyphen - remove - position cursor at closing hyphen - remove.

And in many situations you don' need any hyphens at all or want to use 'C:\bla.txt', <C:\bla.txt>...
 

My Computer

OS
Windows 7 Ultimate x64
CPU
Phenom II X6 1090
Motherboard
ASUS CROSSHAIR IV Formula
Memory
4x2G Kingston HyperX DDR3 1366 (7-7-7-20)
Graphics Card(s)
ASUS NVIDIA GeForce 9600GT
Monitor(s) Displays
2xSyncMaster 245e 1920x1280
Hard Drives
6x Samsung 1GB HD103SJ
PSU
Enermax Modu87+ 700W
Case
Zahlman GS100Plus
Cooling
Scythe Kabuto
Multiple Items Copying

Guys, is there a way to copy path of multiple selected files/folders?
 

My Computer

OS
Windows 7 Enterprise x64
Shift Right-Click will copy for multiple selected files/folders.
 

My Computer

OS
Windows 7 Ultimate x64
Thanks, R A.

I found an answer from another site and I was referred ot the following site for the solution:

Copy File Path and Name using Windows Explorer Context Menu Extensions

So I used that and it worked for me.

The ability to copy path multiple-selected files is cool, but it's something that I have yet to use. For me, pressing shift+right-click to get that functionality if ever needed it would be perfectly fine.

I'm sorry, I don't think that stuff can deal with copying multiple-selected files. Because, for instance, if you select 3 files and right click the program shortcut, that program will run 3 times, the paths of the 3 files cannot be merged.

I wrote a VB6 bas and solved the problem. It really can be for multiple-selected files or folders.

Sub Main()
Dim Paths As String
Dim Start As Single

If App.PrevInstance Then Paths = Clipboard.GetText & vbCrLf 'if previous instance running
Clipboard.Clear
Clipboard.SetText Paths & Mid(Command, 2, Len(Command) - 2) 'function Mid is for removing quotations

Start = Timer
Do While Timer < Start + 1 'keep this instance for about one second
DoEvents '
Loop
End Sub

Registy's modification will be like as follows

Windows Registry Editor Version 5.00
[HKEY_CLASSES_ROOT\*\Shell\Copy File Path\Command]
@="\"C:\\Program Files\\CopyAsPath\\CopyAsPath.exe\" \"%1\""
[HKEY_CLASSES_ROOT\Folder\Shell\Copy Folder Path\Command]
@="\"C:\\Program Files\\CopyAsPath\\CopyAsPath.exe\" \"%1\""

I compiled vb and uploaded it.

I'm sorry again for my English, you know, I'm not an English speaking person.
 

Attachments

My Computer

OS
Windows 7 Ultimate x86
So, in answer to the poster's question, there doesn't seem to be a way of un-extending the behaviour of CopyAsPAth. VERY strange.
 

My Computer

Computer type
Laptop
Computer Manufacturer/Model Number
Dell
OS
Windows 7 Ultimate 64bit
CPU
2.2
Memory
8Gb
Graphics Card(s)
NVIDIA
Screen Resolution
1280/762
Mouse
built in pad || iphone || MS wireless
Internet Speed
100MB
Antivirus
Avast
Browser
Chrome, Chrome portable
Back
Top