How to change Explorer's default location via the registry?

3

3

I'm using Windows 7. I want to set Explorer's default location to "My Computer", whether explorer.exe is launched via the "Run" command, via command-line or via a shortcut. That's why I don't want to use a shortcut with a parameter.

I've done it in the past by tweaking the registry, but the default location was reset to Libraries after an update and I can't find the solution again.

This question isn't a duplicate of this one. The solution given there doesn't work on Windows 7.

Cutter

Posted 2013-04-13T12:32:32.880

Reputation: 374

Question was closed 2014-02-25T13:14:17.970

Out of curiosity, do you happen to know which Windows versions the answer in the other question applies to, so we can tag it accordingly? – slhck – 2013-05-18T14:14:04.970

I don't know, sorry. – Cutter – 2013-05-18T23:10:35.827

I would like for Explorer to default to c:\ for me. I asked this question but I've deleted it so that I could just up-vote and promote this question. Please note, I'd really prefer to do this through the Registry, if this is possible. I'm not interested in doing this with a third-party, hotkey app. Adding a 50 rep bounty. – RLH – 2013-05-20T15:37:20.993

@slhck: IMO the accepted answer to that other question is valid for XP, whereas the AHK script provided by JMD is valid for Vista+. – Karan – 2013-05-20T15:37:57.657

Are you interested in registry hacks like this one or these ones ?

– harrymc – 2013-05-21T10:21:59.040

@harrymc: yes, this kind. – Cutter – 2013-05-21T17:08:26.973

@Cutter: Based on your above comment I summarized these links in my answer, which you promptly down-voted. I deleted my answer, although I still think it's probably the most complete answer you could get for your question. – harrymc – 2013-06-04T11:07:45.947

@harrymc: I'm sorry, I misunderstood. I thought you were asking if the kind of solution I was looking for was a registry hack. – Cutter – 2013-06-04T18:09:10.843

Answers

1

By removing the following registry key, the Libraries will be hidden from the navigation pane and when launching via Win + E, Windows Explorer will default to the virtual Computer folder. If you apply this solution along with @Qwilson's then it should take care of everything except for launching from the Run prompt.

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Desktop\NameSpace\{031E4825-7B94-4dc3-B131-E946B44C8DD5}

After you delete the key, you may need to log off, or restart before it takes effect.

In order to take care of running from the Run prompt, the only solution I could find would be to change your habit from typing explorer to typing shell:mycomputerfolder.

Note: I also found it very helpful to have the Homegroup feature and services turned off. When I tested this in a Virtual Machine with the Homegroup feature on, some launching methods would default to selecting the Homegroup.


Sources:

http://www.askvg.com/how-to-disable-libraries-feature-in-windows-7/

In Windows' Run command line, how to open "My computer"? (@paradroid's answer)

Drew Chapin

Posted 2013-04-13T12:32:32.880

Reputation: 4 839

Note that simply removing that registry key does not disable the Libraries feature, it just hides them from the navigation pane in Windows Explorer. On the first link in my answer there is a registry patch file (.reg) that will disable the Libraries feature if you want to go that far. – Drew Chapin – 2013-05-23T02:21:17.090

Why the down vote? – Drew Chapin – 2013-05-23T20:32:28.023

-1

I'm not exactly sure how to directly get this done via registry, but this option works well for me

  • Right click on the explorer icon (on taskbar)
  • Right click on Windows Explorer
  • Select Properties
  • Change the target to: C:\windows\explorer.exe shell:::{20d04fe0-3aea-1069-a2d8-08002b30309d}
  • Press OK

enter image description here

Qwilson

Posted 2013-04-13T12:32:32.880

Reputation: 626

2This doesn't solve the problem, if you open Windows Explorer by use of the Windows Hotkey. – RLH – 2013-05-20T17:25:17.903

Are you referring to win+e? Because every machine I've ever done this for works in the same manner. Is there any additional info you could offer up about the window behavior e.g. what does open when using the hotkeys. Also, another variation to the target is explorer.exe /e,::{20d04fe0-3aea-1069-a2d8-08002b30309d} – Qwilson – 2013-05-20T19:25:48.917

When you say right-click on the explorer icon on your taskbar, what are you talking about? In my case, I have a pinned folder, but I have to click it, and then right-click on the option that is titled "unpin this option from the taskbar" to see the Properties option. Regardless, modifying the target of the Win Explorer shortcut didn't fix it. Could you add a screenshot? – RLH – 2013-05-20T19:30:49.800

Sure... You're going to end up right-clicking twice. Once on the pinned icon and again on "Windows explorer". You select properties from there. I'm not sure I can add the pic to the comments so I'll attach to my answer... – Qwilson – 2013-05-20T20:32:30.710

qwilson: That's exactly what I did. Thanks for the screen shot. I don't know why this won't work for me. I tried updating the target using both your examples and it still didn't work. – RLH – 2013-05-20T20:38:02.480

Oh man... As a last ditch effort, maybe forgo the full path. Just use explorer.exe shell:::{20d04fe0-3aea-1069-a2d8-08002b30309d} – Qwilson – 2013-05-20T20:41:26.913

This answer doesn't allow you to change the default Win+E Explorer location to any arbitrary folder. It only ensures that clicking the shortcut makes Explorer open at (My) Computer, which Win+E already does for me anyway, even without a pinned Explorer shortcut. – Karan – 2013-05-21T00:07:27.357

@Karan The original question wasn't "How to change Explorer location to an arbitrary folder". It is "I want to set Explorer's default location to "My Computer"...". So in effect I have answered the question. As I mentioned, if you want to be critical, I have not yet provided an answer as to how to do this via the registry. I'm working on it though... – Qwilson – 2013-05-21T01:24:25.903

@RLH: You might want to clarify in your bounty description whether you'll be satisfied with a registry method to set the default location to My Computer (as per the original question), or whether you'd like to know of a way to specify arbitrary locations. – Karan – 2013-05-21T01:30:10.423

I really don't care how you think I got here, bottom line Is I just wanted to help someone out with an issue. BTW if you want to select a different a specific folder, follow my method but use %windir%\explorer.exe (Somedrive-or-location)... you're welcome. :) – Qwilson – 2013-05-21T01:33:25.513

Much simpler is to define the shortcut as just "C:" . – harrymc – 2013-05-21T08:00:19.543

qwilson, thank you for your help. I thought I did mention that I needed this to point to C:, buy I see that I made a mistake. Karan, is there a way that I can update my bounty description? I don't see a modify button. – RLH – 2013-05-21T13:57:50.353

1@Qwilson: your answer obviously doesn't solve the problem as it was formulated. It is explicitly asked to avoid the "shortcut" solution. – Cutter – 2013-05-21T17:03:12.160