How-To Geek
Copy Path of a File to the Clipboard in Windows 7 or Vista
How often have you opened an Open dialog and wished you could just quickly paste in the path of the file you are already looking at in Windows Explorer? Well… now you can, in Windows Vista.
All you have to do is hold down the shift key, and right-click the file:
Choose the Copy as Path from the menu. Here’s an example of what’s on the clipboard after clicking that:
“C:\Users\Public\Pictures\Sample Pictures\Creek.jpg”
Note: This will also allow you to copy the path of a folder to the clipboard.
Got Feedback? Join the discussion at discuss.howtogeek.com
Comments (21)
Programmer by day, geek by night, The Geek, also known as Lowell Heddings, spends all his free time bringing you fresh geekery on a daily basis. You can follow him on Google+ if you'd like.
- Published 01/13/07




So how do you get it to copy without the annoying quotation marks – is there a registry tweak for that?
The quotation marks are always added because a lot of file paths have spaces in them. I don’t know of any way to remove them, however.
I use path copy all the time – ie every time I want to do a hyperlink I find the file in explorer first (usually because I’m already in explorer working on it) then copy the path and paste it into the Hyperlink box, rather than navigating that silly awful small navigation box for hyperlinks. And Hyperlinks don’t need quotation marks around it, so with the silly vista path copy I have to go and remove them first. The other reason I use copy Path a lot is for linking to things from Sharepoint and that needs a UNC path. I find most apps now will handle the spaces with the %20 symbols.
I love Ninotech Path Copy (http://home.worldonline.dk/ninotech/) becuase it has many options for different ways of copying paths. Unfortunately I can’t work out how to install an .inf file in Vista. Any ideas on how you install an .inf file in Vista?
Check out the neat gadget that moves or copies where you tell it and sorts files in the process.
TheMagicFolder.Gadget is its name, check it out.
http://davecra.spaces.live.com/blog/cns!9DEE6858F87A00BB!192.entry
I also installed your method….thanks, it works great.
I don’t know what I was trying before but I just tried again and I can install an .inf file in Vista, so Ninotech Path Copy is now installed!!!! Yeah!!!
I used clickie 1.1 in vista and it works just fine
http://www.defoortsoftware.com/clickie/index.html#download
Thanks for the help.
Okay this is extreemly useful, so is there a way to leave the “Copy as path” in the menu without having to hold shift?
hi geek.. i wondered if there is any way of doing this without needing to hold shift, i know it’s quite unnessessary, but i would really love it, as i do alot of picture work and programming, so i need it all the time.. i just can’t find out of it -.- can u please help..?
afa the double quotes around the paths, you can Search & Replace with EditPad lite. Doing a Replace All with a double quote character in the find box and nothing in the replace box, will remove them all.
As an alternative, in FreeCommander Edit Menu, Copy Full Name as Text you don’t get double quotes even if there are spaces in the filename. Pick your poison. :)
The link in Jodie Minors’s comment is dead, but you can find the app here:
http://www.softpedia.com/get/System/OS-Enhancements/Ninotech-Path-Copy.shtml
this is so helpful, thanks! do you have any idea how i can take it to the next level to share files with people on my local network/homegroup? i.e. as a link i can paste into email or IM that another user can then click on to access the file? Thanks!
When i put a music or data cd in drive E,Window asks only if i want to play or the open the files. But how do I copy them in My documents or My My music
or C drive? thank yoy.
What a bizarrely unrelated and badly-timed place for Amir to ask that.
Agreed, Anonymous. What was Amir thinking? Or perhaps he has no ability to think.
That was really useful.
I was growing tired of the counterproductive method of having to edit the filename, then pasting it in the address bar to copy the whole address…
Many Thanks!
I don’t see the link to download this feature. where are?
@Lucas: No download required, although it only works in Windows 7 or Vista.
Thanks for the info. And thanks to Wil. I used to use Path2Clipboard but it doesn’t work in 64 bits.
Hi Deb, W7 64-bit a big handicap with any context menu modification, its registry quickly messed up if you install a wrong prog.
I use Path Copy Copy and it is super, it is very complete (name, path, long, short, UNC & Internet path) and functions with folders and files from anyware. No effects on other context options.
See http://pathcopycopy.codeplex.com/
I didn’t know that feature was already available.