2021-11-21

Open Windows Explorer to Default Folder

Howto: Open Windows Explorer to your favorite default directory.  These steps work for all versions of Windows, including Windows 11 (not yet illustrated).



Have Windows Explorer open to a default data-folder of your choosing, saving you from having to tunnel.  I like to arrive at C:\Data, but you could arrive at any folder, such as users\Documents or a server drive. 

The steps vary for each version of Windows. 
Scroll down for your version.


Windows 11
See this article: 
https://keyliner.blogspot.com/2021/11/windows-11-tuning.html


Windows 10

1.  From the Start Page, launch File Explorer (Windows Explorer) and set these preferences:

     On the ribbon, click the VIEW tab
     Select View, "Details"
     then
     Check [x] File Name Extensions
     Check [x] Hidden Items

     Close File Explorer



2.  On the Start Page, locate any File Explorer tiles
     "Other-mouse-click" the File Explorer tile,
     Choose "Unpin from Start"

     Similarly, unpin any File Explorer icons from the Task Bar.

     Reason: These icons and tiles cannot be modified.  New ones will be built in a moment.

3.  From the Start Menu (the tile menu),
     search for File Explorer by typing "File Explorer" in the Start Menu's search bar:




4.  Re-launch File Explorer
     Within File Explorer's left-nav (tree-view),

     Tunnel to folder "This PC"
     Tunnel to C:  ["OS (C:)"] the main hard drive
     Tunnel to the "C:\Windows" folder

5.  In the C:\Windows file-list, scroll and locate "explorer.exe" (note the .exe extension)

     Other-mouse-click, choose "Pin to Start". 
     This puts a different File Explorer tile on the Start Menu
     and it will look exactly the same as the one deleted in step 2..



6.  Return to the Start Menu (Tiles).
     Find the newly-built File Explorer icon
     "Other-mouse-click" (right mouse click) the new icon.
     Chose More, "Open File Location"


7.  In this list (which is different than the last File Explorer file-list;
     note it does not say "Explorer.exe"),
     other-mouse-click the Explorer.exe icon, choosing "Properties"


8.  In the Properties screen, edit the target, typing this:

  C:\Windows\explorer.exe /e, "C:\data"

    where slash-e comma is required and C:\data is the folder of your choice
    - use quotes around the "C:\data" path.


     Many choose their documents folder:

  C:\Windows\explorer.exe /e, "C:\Users\youraccount\Documents"

     where "youraccount" is your account name. 
     Find your account name by using File Explorer and browsing to C:\Users.
     Look for a likely-mispelled variant on your name.
     For example, mine shows up as "trayw" or "tray0001"

G.  Click OK, saving the Property changes

H.  From the File Explorer file-list, highlight the same "Explorer" icon
      Select Pin to TaskBar

I.  Close all Explorer Windows and return to the Start Menu

Test: Clicking the File Explorer Tile.  Confirm it opens to the expected folder.  If it does not, you typed the path incorrectly; return to step 7. 



Windows 7, Vista, XP:
(see below for Windows 8.1)

1. From the Start Menu Bar, locate the Windows Explorer icon.
These same steps can also be made on the Windows Explorer Start-Menu menu-item.

a. "other-mouse-click" the Explorer Icon
b. "other-mouse-click" the "explorer.exe" menu choice
c. Select "Properties"










2. In the Properties Window, modify the Target to read

 %windir%\Explorer.exe /e, "c:\data"
 %windir%\Explorer.exe /e, "C:\Users\yourname\Documents"

   Replacing "C:\data" with your favorite default directory (H:\projects, etc.). Use quotes.



  Note: In Windows XP, I believe you use a semi-colon:
  %windir%\Explorer.exe /e; "c:\data"
  %windir%\Explorer.exe /e; "C:\Users\yourname\Documents"


3.  You should delete/modify all other Start Menu and desktop icons that also launch Explorer, and re-build with this same change. 


You are done.


Related links:
Windows 7 Explorer Recommended Tricks

2 comments:

  1. This does NOT work on windows 10 :(

    It just adds a shortcut, which opens new instances of the explorer. See what i mean:
    http://i.imgur.com/awyVilo.png

    Can it be done so it opens the same icon instead of a new?

    ReplyDelete
    Replies
    1. Brian, yes, these steps do work with Windows 10 and I am using them now. Double-check the steps.

      Delete

Comments are moderated and published upon review. (As an aside, not a single spam has been allowed through; why bother?)