WindowsCopyFilePathWithoutQuotes
Started on January 10, 2025
How to Add "Copy Path (No Quotes)" to the Context Menu in Windows
Step 1: Open the Registry Editor
- Press Win + R to open the Run dialog.
- Type
regeditand press Enter or click OK. - If prompted by User Account Control (UAC), click Yes to allow changes.
Step 2: Navigate to the Key
- In the Registry Editor, go to:
HKEY_CLASSES_ROOT\AllFilesystemObjects\shell- Expand the folders in the left-hand tree view to navigate to the
shellfolder.
- Expand the folders in the left-hand tree view to navigate to the
Step 3: Create the "CopyPathNoQuotes" Key
- Right-click the shell folder.
- Select New > Key.
- Name the new key:
CopyPathNoQuotes
Step 4: Set the Display Name
- Select the
CopyPathNoQuoteskey. - In the right-hand pane, double-click the (Default) entry.
- Set the value to:
Copy Path (No Quotes) - Click OK to save.
Step 5: Create the "command" Subkey
- Right-click the
CopyPathNoQuoteskey. - Select New > Key.
- Name the new key:
command
Step 6: Set the Command
- Select the
commandkey. - In the right-hand pane, double-click the (Default) entry.
- Set the value to:
cmd.exe /c echo %1 | clip - Click OK to save.
Final Registry Structure
Your registry should now look like this:
HKEY_CLASSES_ROOT
└─ AllFilesystemObjects
└─ shell
└─ CopyPathNoQuotes
└─ command
Step 7: Close the Registry Editor
- Click File > Exit to close the Registry Editor.
- This ensures that the Registry Editor doesn't open inadvertently when using the new context menu option.