I frequently need to copy the file path of an object in Windows, so that I can paste it into a tool like the command line or Powershell. How can I quickly do this, without having to go to an object’s properties and copying the path from there?
Here’s how to do it
Pressing Shift + Right Click will bring up an additional item in the context menu for you, labeled“Copy as path”.
This will return the file path as a string, and it will be saved to your clipboard.
-----------------------@DaveVoyles


This worked bac in Windows 7 and 8 – but not in Windows 10. Not for me anyway – I have to use the ‘Copy as Path’ button in Windows Explorer. This works, but annoyingly quote marks are added… so I have to mess about deleting in almost all use cases.
Any ideas how to fix this?
I have Win 10 on all of my machines, so it’s difficult for me to tell what it worked like in older versions.
You are correct though — it does add quotes around the link, and I’m not sure why….
Do you happen to know how to right click and copy a “web-path”? Instead of “root drive: back \ slashes” I want to right-click and create a path that links to a file like a video file or pdf. So like a web-link address.
Can you write out what it would look like? Also, what is the use-case?
That could make me better understand what it is you’re looking for.