{"id":273,"date":"2008-05-09T00:37:27","date_gmt":"2008-05-08T19:07:27","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=273"},"modified":"2021-05-24T20:50:41","modified_gmt":"2021-05-24T15:20:41","slug":"add-the-open-file-location-context-menu-for-shortcuts-in-windows-xp","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/add-the-open-file-location-context-menu-for-shortcuts-in-windows-xp\/","title":{"rendered":"How to Add &#8220;Open File Location&#8221; Right-Click Option in Windows XP"},"content":{"rendered":"<p>Windows Vista and Windows 7 include the <b>Open file location<\/b> context menu item for Shortcuts, which helps you quickly open the target folder of a shortcut. In Windows XP, it takes four mouse clicks to accomplish the task.<\/p>\n<p>To open the target folder of a shortcut in Windows XP, you need to right-click on the shortcut file, click Properties and click the <b>Find Target<\/b> button to open the parent folder of the target file or folder. And an additional mouse click is needed to close the Shortcut Properties dialog.<!--more--><\/p>\n<p>You can add the <b>Open file location<\/b> feature in Windows XP (similar to what you have in Windows Vista) using two methods. Method 1 uses a registry file, and Method 2 uses a VBScript. No additional shell extensions are needed!<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/opentargetdir.gif\" width=\"268\" height=\"76\" \/><\/p>\n<p><b>Note:<\/b> The only drawback of Method 1 is that the <b>Open file location<\/b> command will be seen in the context menu of every file and folder, not only for shortcuts. If you need the <b>Open file location<\/b> command shown only for shortcuts (<b>.lnk<\/b> files), you may use my VBScript, which is discussed in Method 2 below.<\/p>\n<h2>Method 1<\/h2>\n<p>Using Notepad, create a .reg file (e.g., <code>findtarget.reg<\/code>) with the following contents.<\/p>\n<pre>Windows Registry Editor Version 5.00\r\n\r\n[HKEY_CLASSES_ROOT\\Directory\\shell\\Open File Location]\r\n@=\"&amp;Open File Location\"\r\n\r\n[HKEY_CLASSES_ROOT\\Directory\\shell\\Open File Location\\command]\r\n@=\"\\\"explorer.exe\\\" \/select,\\\"%1\\\"\"\r\n\r\n[HKEY_CLASSES_ROOT\\*\\shell]\r\n\r\n[HKEY_CLASSES_ROOT\\*\\shell\\Open File Location]\r\n@=\"&amp;Open File Location\"\r\n\r\n[HKEY_CLASSES_ROOT\\*\\shell\\Open File Location\\command]\r\n@=\"\\\"explorer.exe\\\" \/select,\\\"%1\\\"\"<\/pre>\n<p>Right-click on the file and choose <b>Merge<\/b>.<\/p>\n<p>The <b>Open file location<\/b> command is now added to the context menu for all files.<\/p>\n<h4>Undo file<\/h4>\n<p>To remove the option, create a file named <code>undo.reg<\/code> based on the following contents. Double-click to run the file.<\/p>\n<pre>Windows Registry Editor Version 5.00\r\n\r\n[-HKEY_CLASSES_ROOT\\Directory\\shell\\Open File Location]\r\n\r\n[-HKEY_CLASSES_ROOT\\*\\shell\\Open File Location]<\/pre>\n<h2>Method 2<\/h2>\n<p>Here is a VBScript that I wrote which adds the <b>Open file location<\/b> command to the context menu of shortcuts (<i>.lnk<\/i> files)<\/p>\n<p><script src='https:\/\/gist.github.com\/75673dc744762e70fe8a4f39726e31b0.js'><\/script><\/p>\n<p>Download the above script (opentargetdir.vbs) save it to your Windows folder.<\/p>\n<p>Double-click the script, and click OK when you see the following prompt, click OK.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/opentargetdir2.gif\" width=\"363\" height=\"162\" \/><\/p>\n<p>The <b>Open file location<\/b> command is now added to the context menu for shortcuts.<\/p>\n<p><b>Uninstallation<\/b><\/p>\n<p>Run the script. Type <b>UNINSTALL<\/b> and press Enter to remove the <b>Open file location<\/b> command from the context menu. Then delete the file <code>opentargetdir.vbs<\/code> manually from your Windows directory.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Windows Vista and Windows 7 include the Open file location context menu item for Shortcuts, which helps you quickly open the target folder of a shortcut. In Windows XP, it takes four mouse clicks to accomplish the task. To open the target folder of a shortcut in Windows XP, you need to right-click on the &#8230; <a title=\"How to Add &#8220;Open File Location&#8221; Right-Click Option in Windows XP\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/add-the-open-file-location-context-menu-for-shortcuts-in-windows-xp\/\" aria-label=\"Read more about How to Add &#8220;Open File Location&#8221; Right-Click Option in Windows XP\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","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-273","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":275,"url":"https:\/\/www.winhelponline.com\/blog\/add-copy-as-path-right-click-menu-in-xp\/","url_meta":{"origin":273,"position":0},"title":"How to Add &#8220;Copy as Path&#8221; to Right Click Menu in Windows XP","author":"Ramesh","date":"May 10, 2008","format":false,"excerpt":"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 \"Copy of Path\" feature in Windows XP. There are two methods discussed,\u2026","rel":"","context":"In &quot;Windows XP&quot;","block_context":{"text":"Windows XP","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-xp\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived\/copypath.jpg?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":3178,"url":"https:\/\/www.winhelponline.com\/blog\/winkey-e-shortcut-target-change\/","url_meta":{"origin":273,"position":1},"title":"How to Change Win + E Shortcut Target in Windows 10\/11","author":"Ramesh","date":"June 1, 2016","format":false,"excerpt":"The WinKey + E keystroke, as well as the File Explorer shortcut on the taskbar, open Quick access view by default. You can change the default folder to This PC using Folder Options General tab, or make it open to the Downloads\u00a0folder using a registry method. But, how to make\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":"File Explorer shortcut","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/06\/winkey-e-2.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":341,"url":"https:\/\/www.winhelponline.com\/blog\/add-select-all-option-to-the-context-menu-in-windows-vista\/","url_meta":{"origin":273,"position":2},"title":"Add Select All option to the context menu in Windows","author":"Ramesh","date":"June 21, 2008","format":false,"excerpt":"To select all files in a folder or the Desktop, you use the CTRL + A keyboard shortcut. If you're an avid mouse user and need the select all functionality in the right-click menu in Windows, here is a registry tweak. This tweak adds the \"Select All\" option in 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\/selectall.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":75,"url":"https:\/\/www.winhelponline.com\/blog\/save-and-restore-desktop-icon-layout\/","url_meta":{"origin":273,"position":3},"title":"How to Save and Restore Desktop Icon Layout Automatically in Windows","author":"Ramesh","date":"March 14, 2008","format":false,"excerpt":"When testing various display resolutions or after completing a remote desktop session, the desktop icons may go out of order. Another case is that when you accidentally use the Ctrl+ Scroll button (mouse) on your desktop, the Desktop icon size changes.\u00a0But reverting to the original icon size may not restore\u2026","rel":"","context":"In &quot;Utilities&quot;","block_context":{"text":"Utilities","link":"https:\/\/www.winhelponline.com\/blog\/category\/utilities\/"},"img":{"alt_text":"desktop icon layout desktopok","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/03\/desktop-ok-save-icon-layout.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/03\/desktop-ok-save-icon-layout.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2008\/03\/desktop-ok-save-icon-layout.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":4533,"url":"https:\/\/www.winhelponline.com\/blog\/open-file-explorer-downloads-folder-default-windows-10\/","url_meta":{"origin":273,"position":4},"title":"How to Change File Explorer Default Start Folder in Windows 10","author":"Ramesh","date":"November 6, 2016","format":false,"excerpt":"The Windows 10 File Explorer opens to Quick access by default. Quick access is a section where you can place shortcuts to your favorite folders. It also displays recently viewed files and frequently used folders. If you're not a fan of the Quick access feature and want File Explorer to\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":"open file explorer to downloads folder","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived2\/w10-file-expl-this-pc.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1028,"url":"https:\/\/www.winhelponline.com\/blog\/open-file-location-missing-right-click-shortcut-windows-7-vista\/","url_meta":{"origin":273,"position":5},"title":"&#8220;Open File Location&#8221; Missing in Right-Click Menu for Shortcuts","author":"Ramesh","date":"March 9, 2007","format":false,"excerpt":"When you right-click on a shortcut (.lnk file), the option Open file location may be missing from the right-click menu. This happens if the\u00a0IsShortcut registry value for .lnk files (Shortcuts) is deleted\u00a0in an attempt to hide the overlay icon\u00a0in\u00a0shortcuts. To resolve the problem, re-create the IsShortcut registry value. Method 1\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/273","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=273"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/273\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}