{"id":3178,"date":"2016-06-01T12:21:36","date_gmt":"2016-06-01T06:51:36","guid":{"rendered":"http:\/\/198.58.113.91\/blog\/?p=3178"},"modified":"2022-07-10T16:27:26","modified_gmt":"2022-07-10T10:57:26","slug":"winkey-e-shortcut-target-change","status":"publish","type":"post","link":"https:\/\/www.winhelponline.com\/blog\/winkey-e-shortcut-target-change\/","title":{"rendered":"How to Change Win + E Shortcut Target in Windows 10\/11"},"content":{"rendered":"<p>The <kbd>WinKey<\/kbd> + <kbd>E<\/kbd> keystroke, as well as the File Explorer shortcut on the taskbar, open <strong>Quick access<\/strong> view by default. You can change the default folder to <a href=\"https:\/\/www.winhelponline.com\/blog\/open-file-explorer-downloads-folder-default-windows-10\/\">This PC<\/a> using Folder Options General tab, or make it open to the <a href=\"https:\/\/www.winhelponline.com\/blog\/open-file-explorer-downloads-folder-default-windows-10\/\">Downloads<\/a>\u00a0folder using a registry method.<\/p>\n<p>But, how to make Windows 10&#8217;s File Explorer default to a custom folder or the <a href=\"#libraries\">Libraries<\/a> section?<\/p>\n<p>The user interface provides no option to set a custom destination for <kbd>WinKey<\/kbd> + <kbd>E<\/kbd> keystroke or the File Explorer pinned taskbar item.\u00a0As you may have noticed, the File Explorer Pinned taskbar shortcut target can&#8217;t be modified via Properties, as it&#8217;s a special shortcut with the Target field grayed out or read-only.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3180\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/06\/winkey-e-2.png\" alt=\"File Explorer shortcut\" width=\"363\" height=\"509\" \/><\/p>\n<p>However, you change the <kbd>WinKey<\/kbd> + <kbd>E<\/kbd> or the File Explorer shortcut target using a registry edit without breaking any other setting.<!--more--><\/p>\n<h2>Change Win + E and File Explorer Shortcut Target<\/h2>\n<p>To set a default start folder for File Explorer, follow these steps:<\/p>\n<ol>\n<li>Copy the following code to Notepad, and save the file as <code>launch.vbs<\/code> in a safe and protected location.\n<pre>WScript.CreateObject(\"Wscript.Shell\").Run \"C:\\MyFolder\"<\/pre>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3302\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/06\/winkey-e-6.png\" alt=\"winkey+e shortcut target\" width=\"477\" height=\"94\" \/><br \/>\nThe above code launches File Explorer to the specified folder. Change the target folder path accordingly as per your requirement.<\/p>\n<div class=\"qt\">\n<h4><a id=\"libraries\"><\/a>Make File Explorer default to Libraries<\/h4>\n<p>To make File Explorer open to the <strong>Libraries<\/strong> section (instead of a folder) by default, modify the target in the script file, as follows:<\/p>\n<pre>WScript.CreateObject(\"Wscript.Shell\").Run \"%appdata%\\Microsoft\\Windows\\Libraries\"<\/pre>\n<h4><a id=\"libraries\"><\/a>Make File Explorer default to the Desktop folder<\/h4>\n<p>To start Explorer on the Desktop folder, use this code:<\/p>\n<pre>WScript.CreateObject(\"Wscript.Shell\").Run \"shell:desktop\"<\/pre>\n<\/div>\n<\/li>\n<li>Open Regedit.exe and <strong>create<\/strong> the following registry branch.\n<pre>HKEY_CURRENT_USER\\SOFTWARE\\Classes\\CLSID\\{52205fd8-5dfb-447d-801a-d0b52f2e83e1}\\shell\\opennewwindow\\command<\/pre>\n<p><i>Note that the key {52205fd8-5dfb-447d-801a-d0b52f2e83e1} doesn&#8217;t exist by default and you&#8217;ll need to create the key &amp; its subkeys manually. Alternatively, you can use the REG file method mentioned in the next paragraph to create the key\/values automatically.<\/i><\/li>\n<li>Set the (default) value data as:\n<pre>wscript.exe d:\\launch.vbs<\/pre>\n<p>(Assuming <code>launch.vbs<\/code> is saved in <code>d:\\<\/code> drive.)<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3183\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/06\/winkeye-3.png\" alt=\"winkey e shortcut target\" width=\"600\" height=\"186\" \/><br \/>\n<em><b>Quick Tip:<\/b> You can even type an application path if you want to invoke the application using <kbd>WinKey<\/kbd> + <kbd>E<\/kbd>.<\/em><\/li>\n<li>Create a string (REG_SZ) value named <b>DelegateExecute<\/b> setting its value data empty.<\/li>\n<li>Exit the Registry Editor.<\/li>\n<\/ol>\n<h4>Automate the above steps using a REG file<\/h4>\n<p>Here is the .reg file for the above settings. See how to create and use <a href=\"https:\/\/www.winhelponline.com\/blog\/how-to-use-reg-files-registration-entries-windows\/\">.reg files<\/a> in Windows.<\/p>\n<pre><code>Windows Registry Editor Version 5.00\r\n\r\n[HKEY_CURRENT_USER\\SOFTWARE\\Classes\\CLSID\\{52205fd8-5dfb-447d-801a-d0b52f2e83e1}\\shell\\opennewwindow\\command]\r\n@=\"wscript.exe d:\\\\launch.vbs\"\r\n\"DelegateExecute\"=\"\"\r\n<\/code><\/pre>\n<p>The above registry tweak changes the default target path for <kbd>WinKey<\/kbd> + <kbd>E<\/kbd> as well as the special File Explorer shortcut in Windows 10.<\/p>\n<div class=\"qt\">\n<h4>Why is a Script necessary?<\/h4>\n<p>You may be wondering why we need to use a script to start File Explorer to open a specific folder. Why not create a new desktop shortcut with <code>explorer.exe &lt;folderpath&gt;<\/code> as the target?<\/p>\n<p>Running the <code>explorer.exe &lt;folderpath&gt;<\/code> via a shortcut or command-line would create a separate <code>explorer.exe<\/code> process each time. And the additional instances of Explorer.exe remain open even after closing the folder. This also creates multiple and independent File Explorer icons on the Taskbar.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3186\" src=\"https:\/\/www.winhelponline.com\/blog\/wp-content\/uploads\/2016\/06\/winkeye-4.png\" alt=\"winkey+e shortcut target\" width=\"547\" height=\"181\" border=\"1\" \/><\/p>\n<p>The script method prevents the above issues.<\/p>\n<\/div>\n<h3>Option 2: Using AutoHotkey<\/h3>\n<p>You can use the excellent automatic tool AutoHotkey to intercept the <kbd>Winkey<\/kbd> + <kbd>E<\/kbd> hotkey and launch the desired folder or program.<\/p>\n<ol>\n<li>Download and install AutoHotkey.<\/li>\n<li>Using Notepad, create a .ahk file with the following contents:\n<pre>#e::run \"shell:desktop\"<\/pre>\n<\/li>\n<li>Name the accordingly , e.g., <code>change_win_e_target.ahk<\/code><\/li>\n<li>Double-click the .ahk file to run it.<\/li>\n<\/ol>\n<p>Now, pressing <kbd>Winkey<\/kbd> + <kbd>E<\/kbd> will launch the Desktop folder. Replace the target folder in the script file as desired.<\/p>\n<p>Note that the AutoHotkey method is extremely quick compared to the VBScript method. But it doesn&#8217;t change the File Explorer taskbar shortcut target, whereas the VBScript (&amp; registry) method works with File Explorer taskbar shortcut as well as <kbd>Winkey<\/kbd> + <kbd>E<\/kbd>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 Windows 10&#8217;s File Explorer default &#8230; <a title=\"How to Change Win + E Shortcut Target in Windows 10\/11\" class=\"read-more\" href=\"https:\/\/www.winhelponline.com\/blog\/winkey-e-shortcut-target-change\/\" aria-label=\"Read more about How to Change Win + E Shortcut Target in Windows 10\/11\">Read more<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_feature_clip_id":0,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_post_was_ever_published":false},"categories":[8,869,10],"tags":[762,441,480],"class_list":["post-3178","post","type-post","status-publish","format-standard","hentry","category-windows-10","category-windows-11","category-windows-8","tag-autohotkey","tag-registry","tag-scripts"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":4533,"url":"https:\/\/www.winhelponline.com\/blog\/open-file-explorer-downloads-folder-default-windows-10\/","url_meta":{"origin":3178,"position":0},"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":1078,"url":"https:\/\/www.winhelponline.com\/blog\/fix-file-association-error-explorer-in-windows\/","url_meta":{"origin":3178,"position":1},"title":"[Fix] Explorer.exe Error &#8220;This file does not have an app associated&#8221;","author":"Ramesh","date":"September 2, 2010","format":false,"excerpt":"When you click the Windows Explorer or File Explorer shortcut Pinned to the Taskbar, or when running explorer.exe directly, the following error message may be displayed: This file does not have an app associated with it for performing this action. Please install an app or, if one is already installed,\u2026","rel":"","context":"In &quot;Windows&quot;","block_context":{"text":"Windows","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/"},"img":{"alt_text":"file explorer shortcut association error","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2010\/09\/explorer-error-app-association-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2010\/09\/explorer-error-app-association-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/2010\/09\/explorer-error-app-association-1.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":2207,"url":"https:\/\/www.winhelponline.com\/blog\/pin-folder-to-taskbar-windows-10\/","url_meta":{"origin":3178,"position":2},"title":"How to Pin a Folder to Taskbar in Windows 10?","author":"Ramesh","date":"March 19, 2016","format":false,"excerpt":"By default, when you drag a folder and drop it in Taskbar, the folder is added to the File Explorer Jump list, and not as a separate item. To Pin a folder as a separate item in the Taskbar, use these steps.Right-click on the folder you want to Pin 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":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/pin-folder-1.png?resize=350%2C200&ssl=1","width":350,"height":200,"srcset":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/pin-folder-1.png?resize=350%2C200&ssl=1 1x, https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/pin-folder-1.png?resize=525%2C300&ssl=1 1.5x"},"classes":[]},{"id":1705,"url":"https:\/\/www.winhelponline.com\/blog\/file-explorer-error-windows-cannot-find-windows-10\/","url_meta":{"origin":3178,"position":3},"title":"[Fix] File Explorer Error Windows cannot find &#8220;&#8221; in Windows 10","author":"Ramesh","date":"March 1, 2016","format":false,"excerpt":"When you click the File Explorer shortcut in the Taskbar or launch Explorer using WinKey + E hotkey, error \"Windows cannot find \"\". Make sure you typed the name correctly\" may occur. This happens if you've disabled the Quick access feature using registry edit, and File Explorer is set 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":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/w10\/explorer-error.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":845,"url":"https:\/\/www.winhelponline.com\/blog\/windows-explorer-defaults-libraries-folder-windows-7\/","url_meta":{"origin":3178,"position":4},"title":"Windows Explorer Defaults to Libraries Folder in Windows 7","author":"Ramesh","date":"January 22, 2009","format":false,"excerpt":"When you open Windows Explorer in Windows 7, it opens the Libraries folder by default. You can change the default startup folder using the Windows Explorer shortcut properties, as you did in earlier versions of Windows. In Windows 7, right-clicking on the Windows Explorer Taskbar icon will show the Jump\u2026","rel":"","context":"In &quot;Windows 7&quot;","block_context":{"text":"Windows 7","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/windows\/windows-7\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived\/w7-icon.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]},{"id":1130,"url":"https:\/\/www.winhelponline.com\/blog\/pinned-site-shortcuts-open-default-browser\/","url_meta":{"origin":3178,"position":5},"title":"How to Open Pinned Site Shortcuts Using Your Default Browser (Registry Hacks)","author":"Ramesh","date":"May 23, 2011","format":false,"excerpt":"With the Pinned Sites feature introduced in Internet Explorer 9, you can add your favorite websites to the Taskbar and\/or the Start menu. We've seen that in article IE9 Lets You Pin Website Shortcuts to the Windows 7 Taskbar. Clicking the Pinned site shortcut opens the website using Internet Explorer,\u2026","rel":"","context":"In &quot;Internet Explorer&quot;","block_context":{"text":"Internet Explorer","link":"https:\/\/www.winhelponline.com\/blog\/category\/microsoft\/internet-explorer\/"},"img":{"alt_text":"","src":"https:\/\/i0.wp.com\/www.winhelponline.com\/blog\/wp-content\/uploads\/archived\/ie9-pinsite-diff-brwsr-3.png?resize=350%2C200&ssl=1","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/3178","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=3178"}],"version-history":[{"count":0,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/posts\/3178\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/media?parent=3178"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/categories?post=3178"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.winhelponline.com\/blog\/wp-json\/wp\/v2\/tags?post=3178"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}