How to Add Copy Path to Context Menu in Windows 10 Typing file paths in Command Prompt or PowerShell can be frustrating— one small mistake, and the command fails. That's why getting the exact path matters. In this video, we’ll show you how to add 'Copy as path' to your right click menu in Windows. Before we begin, be sure to subscribe to NinjaOne’s IT Video Hub and our YouTube channel for more tech content like this. How to add Copy path to the Context Menu Before we add a copy path via the Registry Editor, make sure to back up your Windows Registry. A wrong change can cause system problems. Press Win + R, type regedit, and hit Enter. Click Yes if prompted. In the Registry Editor, navigate to: HKEY_CLASSES_ROOT\AllFilesystemObjects\shell. If the shell folder doesn’t exist, right click AllFilesystemObjects, select New > Key, and name it shell. Next, right click the shell folder, choose New > Key, and name it CopyPath. Inside CopyPath, double click (Default), and set the value to Copy Path. If you want to add an icon: Right click in the right panel, select New > String Value, name it Icon, and set its value to: imageres.dll,-5302 Next, right click CopyPath, choose New > Key, and name it Command. Click the Command key, double click (Default) on the right, and set the value to: cmd.exe /c echo "%1" | clip Close the Registry Editor. Now, right click any file or folder to see the Copy Path option. How to remove Copy Path from the context menu To remove Copy Path via the Registry Editor: Open Registry Editor; press Win + R, type regedit, and hit Enter. Go to: HKEY_CLASSES_ROOT\AllFilesystemObjects\shell Right-click the CopyPath folder and select Delete. Confirm the prompt by clicking Yes. Close the Registry Editor. After this, Copy Path will be removed instantly. What is Copy Path in the Windows context menu? The Copy Path option in Windows lets you quickly copy the full path of a file or folder to your clipboard, wrapped in quotes, which is perfect for use in command-line tools. It's especially helpful for scripting, coding, or writing documentation. Instead of typing long paths by hand, you can paste them instantly and avoid mistakes. Why you should add Copy as path to the context menu Enabling the Copy Path option makes working with files and folders faster and more efficient. Instead of navigating through the File Explorer ribbon, you can copy a full path with just one click. Adding it to the right-click menu also saves you from having to press the Shift key each time. This feature automatically wraps pads in quotation marks, making it especially useful for scripting, documentation, or command-line tasks where accuracy matters. With one click, the Copy Path feature in Windows 10 lets you quickly copy file or folder paths. It adds quotation marks automatically, making it easier for techs and admins to run scripts, use the command line, and manage multiple systems efficiently. For more information, check out our official blog post on how to add Copy Path linked in the description below.

How to Add Copy Path to Context Menu in Windows 10

Tired of manually typing long file paths in Command Prompt or PowerShell—only to get tripped up by a single typo? We’ve got you covered.

In this step-by-step tutorial, we’ll show you how to add (and remove) the ‘Copy Path’ option to your right-click menu in Windows 10 using the Registry Editor. This simple tweak saves time, boosts accuracy, and helps IT pros, sysadmins, and power users streamline command-line tasks, scripting, documentation, and more.

Read the full blog on How to Add Copy Path to Context Menu in Windows 10

Never miss a NinjaOne video!

in this video

    Never miss a video!