Lifehack: How can I get the path to a file in Windows 10?

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.




4 thoughts on “Lifehack: How can I get the path to a file in Windows 10?

  1. 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….

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

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.