How to Copy a File Path in Windows 11 (Copy as Path)
By Khushi Yadav
To copy a file path in Windows 11, select the file in File Explorer and press Ctrl+Shift+C, or right-click it and choose Copy as path. The full path goes to the clipboard as text, in quotes, for example "C:\Users\Sam\Documents\invoice.pdf". Paste it anywhere with Ctrl+V.
On Windows 10, hold Shift while you right-click the file, then choose Copy as path. To copy the path of the folder you're in, click the File Explorer address bar and press Ctrl+C.
Method 1: Right-click and choose Copy as path
- Open File Explorer (Windows logo key + E) and find the file or folder.
- Right-click it and choose Copy as path.
- Paste the path with Ctrl+V.
If you don't see the command, hold Shift while you right-click; that has always revealed Copy as path, including on Windows 10. The Windows 10 File Explorer ribbon also has a Copy path button on the Home tab.
Select several files first and Copy as path copies all of their paths, one per line.
Method 2: Press Ctrl+Shift+C
On Windows 11, select a file or folder in File Explorer and press Ctrl+Shift+C. You get the same quoted path as Copy as path, without opening a menu. Microsoft added this shortcut in 2021, so it's present on current Windows 11 versions; Windows 10 doesn't have it.
Method 3: Copy the folder path from the address bar
- Open the folder in File Explorer.
- Click an empty part of the address bar, or press Alt+D or Ctrl+L. The breadcrumb turns into a plain path.
- Press Ctrl+C.
This copies the folder's path without quotes. To get a full file path, add a backslash and the file name. You can also right-click the address bar and choose Copy address as text.
Should you keep the quotes?
Copy as path and Ctrl+Shift+C wrap the path in double quotes so it still works when a folder name contains spaces. That's what you want in Command Prompt, PowerShell and most file-open boxes.
Remove the quotes when the destination treats them as part of the text: a spreadsheet cell, a configuration file, a chat message, or some address and search boxes. Paste into Notepad, delete the two quote marks, and copy again. Or use Method 3, which copies without quotes.
Copy paths with PowerShell
PowerShell is quicker when you need many paths, or paths of hidden files. These commands put plain text on the clipboard:
# Full path of one file
(Get-Item -LiteralPath '.\invoice.pdf').FullName | Set-Clipboard
# Full paths of every file in the current folder, one per line
Get-ChildItem -File | ForEach-Object FullName | Set-Clipboard
Use -LiteralPath when a file name contains square brackets. Pipe the FullName text, not the file object: in Windows PowerShell 5.1, Set-Clipboard also accepts file paths through its -Path and -LiteralPath parameters and can put the file itself on the clipboard instead of its path. The PowerShell clipboard cheat sheet has more examples.
A copied path is not a copied file
Copying a path and copying a file are different operations, and they paste differently:
| What you did | What's on the clipboard | Paste into Notepad | Paste into a folder |
|---|---|---|---|
| Copy as path or Ctrl+Shift+C | Text | The path | Nothing useful |
| Select the file, Ctrl+C | A list of file locations | No usable text | A copy of the file |
If you paste into a chat and get the file instead of its path, you used Ctrl+C on the file. Clipboard history (Win+V) keeps copied paths, because they're text, but it doesn't keep copied files. Clipboard vs file copy explains why.
Paths for terminals, colleagues and cloud folders
- Terminals. Quoted paths paste cleanly into PowerShell and Command Prompt. In Command Prompt, use
cd /d "D:\Projects"to change drive and folder together. WSL and Git Bash want forward slashes; how to copy a file path that works in the terminal covers the conversions. - Network shares. A path on a mapped drive such as
S:\Finance\report.xlsxonly works for people who have the same drive letter. Send the UNC form (\\server\share\...) instead. Pasting a path never grants access; the recipient still needs permission. Clipboard file lists on network drives has more. - OneDrive and SharePoint. A local path like
C:\Users\Sam\OneDrive\...only exists on your PC. Share a link from OneDrive when someone else needs the file. - Long paths. Some older apps can't open paths longer than 260 characters. A path that pastes fine may still fail to open there.
FAQ
How do I copy just the file name?
Select the file and press F2 to rename it. The name (without the extension) is selected; press Ctrl+A to include the extension, then Ctrl+C, and Esc to cancel the rename.
Why is Copy as path missing from my right-click menu?
Hold Shift while you right-click, or use Ctrl+Shift+C on Windows 11. Some locations, such as a phone connected over USB, aren't ordinary folders on a drive and may not offer a path to copy.
Can I copy the paths of many files at once?
Yes. Select them all, then use Copy as path or Ctrl+Shift+C. Each path lands on its own line.
Related reading
- How to Copy a File Path That Works in the Terminal
- Clipboard vs File Copy in Windows: What's the Difference?
- Copy and Paste Keyboard Shortcuts for Windows 11 and 10
- Long File Paths on Windows: Fix MAX_PATH in Git and Monorepos
Sources
- Announcing Windows 11 Insider Preview Build 22463 (Windows Insider Blog) — Ctrl+Shift+C copies the selected item's path.
- Keyboard shortcuts in Windows (Microsoft Support) — Alt+D, Ctrl+L and Win+E in File Explorer.
- Set-Clipboard (Microsoft Learn) — piping text to the clipboard; the 5.1 Path and LiteralPath parameters.
- Maximum path length limitation (Microsoft Learn) — the 260-character MAX_PATH limit.
Khushi Yadav writes Edge Drop's workflow and design guides and is a B.Tech Computer Science Engineering student. Khushi's posts are checked against Microsoft's documentation and the Edge Drop fact sheet.
GitHub · LinkedInCopy. Stack. Drop.
Transform your clipboard into an interactive edge shelf. Stack, pin, and drag assets into any app with zero friction.
Download for Windows Get from Microsoft Store
How to Install Guide · First 10 Minutes Guide · Drag & Drop Guide · Edge Drop vs Win+V · Support
Free · Lightweight · Privacy First