{"id":275,"date":"2008-05-10T17:13:02","date_gmt":"2008-05-10T11:43:02","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=275"},"modified":"2021-05-31T16:21:02","modified_gmt":"2021-05-31T10:51:02","slug":"add-copy-as-path-right-click-menu-in-xp","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/add-copy-as-path-right-click-menu-in-xp\/","title":{"rendered":"How to Add &#8220;Copy as Path&#8221; to Right Click Menu in Windows XP"},"content":{"rendered":"<p>Windows Vista and higher already include the useful <b><a title=\"Using &quot;Copy as Path&quot; command to copy file or folder path to Clipboard\" href=\"https:\/\/www.winhelponline.com\/blog\/copy-as-path-always-show-right-click-windows-10\/\">Copy as Path<\/a><\/b> option in the context menu, which helps you quickly copy the complete path of the selected file(s) or folder(s) to the Clipboard. Here is how to add &#8220;Copy of Path&#8221; feature in Windows XP.<!--more--><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignleft\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived\/copypath.jpg\" width=\"165\" height=\"115\" border=\"0\" \/><\/p>\n<p>There are two methods discussed, both of them require the <b>Clip.exe<\/b> file from Microsoft. Clip.exe redirects command-line output to the Windows Clipboard. For example, typing the command <b>dir | clip<\/b> in a Command Prompt window places a copy of the current directory listing into the Windows clipboard.<\/p>\n<p><b>Note:<\/b> When using the <b>Copy as Path<\/b> command after following the steps in <b>Method 1<\/b>, you&#8217;ll see a Command Prompt window opening and closing briefly. <b>Method 2<\/b> uses a VBScript which launches the Command Prompt window in invisible mode.<\/p>\n<p>Download <b>Clip.exe<\/b> from the Microsoft FTP site <a href=\"ftp:\/\/ftp.microsoft.com\/Services\/TechNet\/samples\/PS\/Win98\/Reskit\/FILE\/CLIP.EXE\">here<\/a> and save the file to your Windows directory.<\/p>\n<p>(To open the Windows directory in your system, click Start \u2192 Run, type <code>%systemroot%<\/code>, and press Enter.)<\/p>\n<p>Then, follow one of the methods below.<\/p>\n<h2>Add &#8220;Copy as Path&#8221; to Right Click Menu<\/h2>\n<ol>\n<li>Download <b><a href=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived\/copypath.reg\">copypath.reg<\/a><\/b> and save it to the Desktop.<\/li>\n<li>Right-click on the file and choose <b>Merge<\/b>.<\/li>\n<li>Click <b>Yes<\/b> when asked for confirmation.<\/li>\n<\/ol>\n<p>This adds the following registry key:<\/p>\n<pre>HKEY_CLASSES_ROOT\\Allfilesystemobjects\\shell\\CopyPath\\command<\/pre>\n<p>and sets the <code>(default)<\/code> value to:<\/p>\n<pre>%comspec% \/c &lt;nul (set\/p anyvariable=\"%1\")|clip.exe<\/pre>\n<p>You&#8217;ll see the &#8220;Copy as Path&#8221; option when you right-click a file or folder.<\/p>\n<p><i>Note: Previously it was %comspec% \/c echo &#8220;%1&#8243;|clip.exe, but since that adds a line feed, I had to change the command-line as above. Thanks to Eric.<\/i><\/p>\n<div class=\"rp\"><strong>Related:<\/strong> <a href=\"https:\/\/www.winhelponline.com\/blog\/copy-as-path-without-quotes-file-uri-format\/\">How to Copy as Path Without Quotes and in File URI Format<\/a><\/div>\n<h3>Using a Script<\/h3>\n<p>To automate the above task of adding or removing the <strong>Copy as Path<\/strong> menu option, you can use this script as an alternative.<\/p>\n<ol>\n<li>Download <b><a href=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived\/copypath.zip\">copypath.zip<\/a><\/b> extract the script file copypath.vbs file to your Windows directory.<\/li>\n<li>Double-click <b>copypath.vbs<\/b> to run it.<\/li>\n<li>Click Ok when you see the following prompt:<br \/>\n<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived\/copypath2.gif\" width=\"363\" height=\"162\" border=\"0\" \/><\/li>\n<\/ol>\n<p><em><span style=\"text-decoration: underline;\">(<\/span>To remove the <b>Copy as Path<\/b> context menu option, double-click the <code>copypath.vbs<\/code> file, type <code>UNINSTALL<\/code> and click Ok. Then delete the file <code>copypath.vbs<\/code> manually from your Windows directory.<span style=\"text-decoration: underline;\">)<\/span><\/em><\/p>\n<p>After following one of the methods above, &#8220;Copy as Path&#8221; option will be added to the context menu. To copy a file or folder path to Clipboard, press and hold the Shift key, right-click on the file or folder and click &#8220;Copy as Path&#8221;.<\/p>\n<p><b>Additional Tip:<\/b> If you want to make the Copy as Path command always available (without needing to use the SHIFT key), simply delete the value named <strong>Extended<\/strong> in the registry location below, using the Registry Editor:<\/p>\n<pre>HKEY_CLASSES_ROOT\\Allfilesystemobjects\\shell\\CopyPath<\/pre>\n<p>See also: <a href=\"https:\/\/www.winhelponline.com\/blog\/add-the-open-file-location-context-menu-for-shortcuts-in-windows-xp\/\">How to Add &#8220;Open File Location&#8221; Right-Click Option in Windows XP<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows Vista and higher already include the useful Copy as Path option in the context menu, which helps you quickly copy the complete path of the selected file(s) or folder(s) to the Clipboard. Here is how to add &#8220;Copy of Path&#8221; feature in Windows XP.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[12],"tags":[114,441,480],"class_list":["post-275","post","type-post","status-publish","format-standard","hentry","category-windows-xp","tag-context-menu","tag-registry","tag-scripts"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":4395,"url":"https:\/\/www.winhelponline.com\/blog\/copy-command-prompt-output-clipboard-save-file\/","url_meta":{"origin":275,"position":0},"title":"How to Copy Command Prompt Output Text to Clipboard or File","author":"Ramesh","date":"October 23, 2016","format":false,"excerpt":"Windows Command-line tools are great for troubleshooting, as well as automation. But, if you're stumped when a tech support guy on the phone asks you to run a built-in console command and copy the output displayed for diagnosing a problem, these Command Prompt basics will come in handy. This post\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"Command Prompt window","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/10\/command-prompt-header.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/10\/command-prompt-header.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/10\/command-prompt-header.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":386,"url":"https:\/\/www.winhelponline.com\/blog\/copy-text-file-contents-to-clipboard-using-context-menu\/","url_meta":{"origin":275,"position":1},"title":"Copy Text file Contents to Clipboard via Right-Click Menu","author":"Ramesh","date":"July 25, 2008","format":false,"excerpt":"To copy the contents of a text-based file, you open the file in an editor such as Notepad, use Select All and then copy the contents to the clipboard. How about accomplishing it using a command in the right-click menu? Add \"Copy to Clipboard\" to the Context Menu Start the\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/copyclip.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":9532,"url":"https:\/\/www.winhelponline.com\/blog\/how-to-get-file-hash-via-right-click-menu-windows\/","url_meta":{"origin":275,"position":2},"title":"Get File Hash Checksum (MD5, SHA-256) via Right-click Menu","author":"Ramesh","date":"May 26, 2019","format":false,"excerpt":"Hashing means taking an input string of any length and giving out an output of a fixed length. Using the cryptographic hashing algorithm -- e.g., MD5, SHA-256, SHA-384, you can verify if two files are identical or not. The checksum is a hash value used for performing data integrity checks\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"get file hash right-click menu 7-zip","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/7zip-get-file-hash-crc-sha-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/7zip-get-file-hash-crc-sha-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/7zip-get-file-hash-crc-sha-1.png?resize=525%2C300&ssl=1 1.5x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2019\/05\/7zip-get-file-hash-crc-sha-1.png?resize=700%2C400&ssl=1 2x"},"classes":[]},{"id":231,"url":"https:\/\/www.winhelponline.com\/blog\/copy-target-url-context-menu-option-for-internet-shortcut-url-files\/","url_meta":{"origin":275,"position":3},"title":"How to Copy Address of a Internet Shortcut (.URL) via Right-click Menu","author":"Ramesh","date":"April 26, 2008","format":false,"excerpt":"The Copy as Path command in the right-click menu is an extremely useful one to quickly copy the full path of a file or folder to clipboard. Similarly, for internet shortcut (.url) files, here is a script that lets you copy the web address (URL) of a internet shortcut, via\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"add \"copy target url\" context menu option for internet shortcuts","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/04\/copytargeturl.gif?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":26750,"url":"https:\/\/www.winhelponline.com\/blog\/copy-file-details-version-product-context-menu\/","url_meta":{"origin":275,"position":4},"title":"Copy Detailed File Info to Clipboard via Right-Click Menu","author":"Ramesh","date":"June 7, 2022","format":false,"excerpt":"The Details tab in the Properties sheet shows the file version, product name, copyright, and other details. However, Windows doesn't let you copy the information to the clipboard. In this article let's see how to copy the file info to the clipboard using PowerShell. You can also incorporate the command\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"copy file information, version, product via powershell","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/06\/copy-file-info-context-4.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/06\/copy-file-info-context-4.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2022\/06\/copy-file-info-context-4.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":3774,"url":"https:\/\/www.winhelponline.com\/blog\/copy-as-path-always-show-right-click-windows-10\/","url_meta":{"origin":275,"position":5},"title":"Show &#8220;Copy as Path&#8221; Always in Right-Click Menu Without Shift Key","author":"Ramesh","date":"December 28, 2016","format":false,"excerpt":"This post tells you how to always show the Copy Path option in the right-click menu by default in Windows 10, without needing to press Shift\u00a0every time. The much useful \"Copy as Path\" built-in context menu exists in all versions of Windows. It's an extended command which means you need\u2026","rel":"","context":"In &quot;Windows 10&quot;","block_context":{"text":"Windows 10","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-10\/"},"img":{"alt_text":"copy-as-path-always-show-windows-10","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/08\/copy-as-path-always-2.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/275","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/comments?post=275"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/275\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=275"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=275"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=275"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}