Copy Path in File Explorer in Windows 10

How to Copy Path in File Explorer in Windows 10

In this article, I would like to share a number of methods you can use to copy the full path to a file or folder in Windows 10 File Explorer. While it is a trivial task, there are a few tidbits you will definitely find interesting and useful.

Advertisment

File Explorer is the default file management app which is bundled with Windows starting with Windows 95. Besides file management operations, Explorer.exe also implements the shell - the Desktop, taskbar, desktop icons and also the Start menu are parts of the Explorer app. Note: In Windows 10, the Start menu is a special UWP app, which is integrated into the shell. Starting with Windows 8, File Explorer got the Ribbon user interface and the quick access toolbar.

Sometimes it is very useful to copy the full path to a file or a folder, especially when it is stored under the long directory hierarchy. You may need to upload a document online, or attach it to an email. In this case, browsing the file system is a time consuming task. If you already have the path to the file in the Windows clipboard, it can be retrieved with a single keystroke.

In Windows 10, there are several ways to use the copy as path command. It is available directly in the Ribbon user interface, from the file context menu, and from the context menu of the address bar. Let's review these methods.

To Copy Path in File Explorer in Windows 10,

  1. Open File Explorer.
  2. Navigate to the folder that contains your file.
  3. In the Ribbon user interface of Explorer, click Home > Copy path.Copy Path File Explorer Windows 10
  4. Now, open Notepad and paste the clipboard contents (Ctrl + V). You will see the path to the file surrounded by quotes.Paste Copied Path Windows 10

Alternatively, you can right-click the address bar in File Explorer and use the copy commands from there. This method only works for folders but not for files.

Copy Path from File Explorer Address Bar Context Menu

  1. Navigate to the destination folder.
  2. Right-click on the address bar.
  3. From the context menu, select Copy address as text.Copy Path File Explorer Address Bar
  4. This will put the path to the current folder to the clipboard without quotes.Paste Copied Path File Explorer Address Bar
  5. You can also use the Copy address command. See the note.

You are done!

Note: You might be wondering what is the difference between the Copy address and Copy address as text commands. Technically, both allow you to copy the path and paste it to another app, e.g. Notepad. However, the Copy address command puts the folder (the file system object) to the clipboard, so you can paste it to another location or even in a different file management app like Total Commander.

Finally, you can simply click into the address bar area, so will become editable.

Windows 10 File Explorer Address Bar Full Path

Also, you can move the cursor to that area by pressing Alt + L or  Alt + D. Then simply press  Ctrl + C to copy the path.

Copy Path from File Explorer Context Menu

  1. Open File Explorer.
  2. Navigate to the destination folder.
  3. Press and hold the Shift key and right-click a file or folder in File Explorer.Copy Path File Explorer Context Menu Windows 10
  4. A hidden command Copy as path will appear in the context menu.

You are done.

Tip: If you are frequently using the context menu option, it is a good idea to make the command always visible in the context menu. Check out the following post:

Get Copy Path Always Visible in Context Menu in Windows 10

Paste Paths to Command Prompt and PowerShell Faster

Not so many people seem to be aware that it is possible to drag the desired file or folder directly to the command prompt window to paste it's path into the command prompt. This is extremely handy if you need to paste the path of the several files or repeat this task for many objects one by one.

Just select some file or folder in File Explorer and drag it to the opened command prompt. In the example below, I did that with the "private" folder:

Paste Path By Drag Drop Windows 10

That's it!

Using Classic Shell? See How to add Copy as Path button to the Classic Shell Explorer toolbar.

Advertisment

Leave a Reply

Your email address will not be published. Required fields are marked *