← Back to Blog

Workflows & Productivity | Jun 7, 2026 | 6 min read

How to Copy a File Path to the Clipboard

By Khushi Yadav

How to Copy a File Path to the Clipboard — Edge Drop Guide

A file path is text: C:\Users\Alex\Documents\invoice.pdf. Copying the file is a file-list payload Explorer can paste as a duplicate. Mixing them up is how a chat gets a blank attachment or a terminal gets a useless icon.

This guide covers the Explorer commands that put a path string on the clipboard, how that differs from Ctrl+C on the file, and how clipboard history treats the result.

Copy as path (recommended)

On Windows 11, File Explorer’s right-click menu includes Copy as path for a selected file or folder.

  1. Open File Explorer (Windows logo key + E).
  2. Select the file or folder.
  3. Right-click it.
  4. Choose Copy as path.
  5. Paste into Notepad, a terminal, or a ticket with Ctrl+V.

The clipboard now holds a path string, often in quotes ("C:\Path\file name.docx"). Quotes help when the path contains spaces.

If Copy as path is not on the compact menu:

  1. Right-click the item.
  2. Select Show more options.
  3. Choose Copy as path.

The older discovery method still works on many PCs: hold Shift and right-click, then Copy as path. Microsoft’s File Explorer article documents the compact menu and Show more options; it does not always spell the Copy as path label. The command is a long-standing Explorer action and is widely confirmed in Microsoft Q&A. If a PC truly lacks it, use the address-bar method below.

Some Windows 11 builds copy the path with Ctrl+Shift+C when a file is selected. Microsoft’s main keyboard-shortcut table does not consistently list that chord. Treat it as optional. The menu item is the reliable path.

Copy the folder path from the address bar

Microsoft’s OneDrive path-length article documents this as the way to display and copy a full path:

  1. Open the folder that contains the file (or the folder whose path is needed).
  2. Click the Explorer address bar, or press Ctrl+L.
  3. The breadcrumb turns into a text path.
  4. Press Ctrl+C.
  5. Paste. Append \filename if the file name is still needed.

This copies the folder path, not automatically the selected file’s full path. It is the right tool for “where am I?” and for measuring path length.

Copy from Properties

  1. Right-click the file > Properties.
  2. On the General tab, the Location field is the parent folder.
  3. Select that text and copy, then add the file name.

Useful when the compact menu is customized or Explorer is in a weird namespace (some library views).

Path versus file versus image

ActionClipboard holdsCtrl+V in NotepadCtrl+V in ExplorerWin+V history
Copy as pathUnicode textThe path stringNothing useful (not a file list)Yes, as text (if history is on, under 4 MB)
Ctrl+C on the fileFile list (CF_HDROP)Usually empty or a path-like leftover depending on the appDuplicate or moveTypically no card
Open the image, CopyBitmapEmptyNo fileYes, if ≤ 4 MB
OneDrive Share a OneDrive linkA sharing URL (text)The linkNot the local fileYes, as text

Copying an image file in Explorer is still a file, not pixels. That distinction is How to Copy an Image Instead of the File.

PowerShell alternative (when Explorer UI is awkward)

For automation or a hidden file:

(Get-Item -LiteralPath '.\invoice.pdf').FullName | Set-Clipboard

Set-Clipboard puts Unicode text on the live clipboard. History will record it if the feature is on. This is a supported PowerShell cmdlet, not a registry hack. Use -LiteralPath when the name contains [].

To copy several paths, one per line:

Get-ChildItem -File | ForEach-Object FullName | Set-Clipboard

That is still text, not a file list. Explorer will not paste those lines as files.

Paths in terminals and code

Quoted paths from Copy as path paste cleanly into PowerShell:

cd "C:\Users\Alex\Documents"

In cmd, the same quoted string works with cd /d. Some tools want the quotes stripped. Paste into Notepad, delete the quotes, copy again.

Long paths can hit legacy MAX_PATH limits in older apps. Microsoft documents checking length by copying the address-bar path into an editor and counting characters. That is a text problem, not a clipboard-history problem.

UNC paths (\\server\share\file) copy the same way. Pasting them does not grant access; credentials still apply.

History, pins, and secrets

A path is text. With history on, it becomes a Win+V card. Pin it only if the location is not sensitive. A path to a payroll folder on a shared PC is still a leak of structure even without the file.

Unpinned cards disappear at restart. A pinned path survives reboot but is not a shortcut file. Enablement: turn on Win+V history.

Leave Automatically sync text that I copy off if internal paths should not appear on another device.

Office: copy the path of the open document

In Microsoft 365 desktop apps, File > Info includes a command to copy the path to the current file (Alt+F, I, then C on the documented File menu shortcuts). That is the path of the open document, which may be a SharePoint or OneDrive URL rather than a C:\ path.

Network, removable, and OneDrive paths

A copied path is a string. It does not keep the file available if the USB drive is ejected or the VPN drops. Pasting D:\scan.pdf into a ticket after the scanner stick is gone does not help the next person.

OneDrive paths may look like C:\Users\...\OneDrive - Contoso\file.docx or like an https:// sharing URL. Copy as path gives the local path. Share a OneDrive link gives a URL. Send the URL when the recipient does not have the same drive mapping. Send the local path only to someone on the same PC or the same synced folder layout.

Mapped drives (S:\Finance\...) fail for colleagues who do not have S:. Prefer UNC (\\fileserver\finance\...) when the path is for another human.

Confirm the right payload

  1. Copy as path on a file.
  2. Paste into Notepad — should see quotes and \ or / characters.
  3. Ctrl+C on the same file in Explorer (copy the file).
  4. Paste into Notepad — should not look like a clean quoted path (often blank).
  5. Paste into another folder — the file appears.

If step 2 is blank, the menu click was Copy, not Copy as path.

Related shortcuts: Keyboard Shortcuts for Copy and Paste on Windows. The Win+V list: What Win+V Actually Opens on Windows 11.

A local manager is unnecessary for path text. It only helps if many paths must stay visible as a stack. Edge-Drop is optional for that.

Related reading

Sources

Khushi Yadav
Written by Khushi Yadav · Author & Content Writer

Khushi Yadav is a B.Tech Computer Science Engineering student interested in technology, software, and exploring practical applications of computer science. She enjoys learning new concepts and contributing to technology-focused projects.

GitHub · LinkedIn

Copy. 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
Find us on CodeHype