The trouble with the world is that the stupid are cocksure and the intelligent full of doubt. --Bertrand Russell
Welcome to my blog and project site for Microsoft.NET development.

I've been a full time .NET developer for ten years, but I didn't start my professional life as a programmer ... more
Share/Print this page:

Windows Explorer Opens Search Window When Clicking a Folder

By steve on September 01, 2007.
Updated on January 22, 2012.
Viewed 11,559 times (0 times today).
Article AttributesArticle TypesArticle TypesMicrosoft Stack
Has ImagesBlogHow ToWindows

Overview

Contents

For some inexplicable reason in Windows XP when you click on a folder in Windows Explorer, a search window pops up rather than simply opening the folder.

The Problem

Contents

I suspect this is a very rare problem, but I spent 2 hours yesterday trying to figure it out so thought I'd share my experience.

First I'll explain the problem. In Windows Explorer if you click on an ordinary folder you'll get a search window instead of a folder view listing the folder's contents.

First, here's an ordinary view in Windows Explorer

Click on an ordinary folder in Windows Explorer

If you right-click a folder, you see that Search is the default action.

The context menu shows that Search is the bolded default

Now click or double-click the folder to open its contents as you normally would. You get a search window instead.

Search windows is opened with no file listing. Arggh.

How did this happen?

Contents

You have probably been playing with 'Folder Options'. I'm not exactly sure what caused the problem in my case, but I was trying to change icons for file types when this problem arose.

The Solution

Contents

You would think there would be some easy way to change the default action in the context menu. If there is I didn't find it.

A simply registry edit will fix this issue.

The key to change is:

HKEY_CLASSES_ROOT\Directory\Shell\Default

If you have this problem, then it's likely your Default key has a value of nothing. Change the value of the key to the string: "none".

That should do it. If you actually had this problem and this article helped leave me a message. I'm wondering if anyone will every read this?

(if you haven't edited the registry before just type 'regedit' at a command line. Be careful, you can corrupt your system if you change something without knowing what you're doing.)

Fix the problem with a registry edit

Back to Top

User Comments (79)

Posted 2007 Sep 13 12:58 PM. reply
That works, thanks a million!

Bk
Reply 2007 Sep 13 20:39 PM by steve. reply
Somebody actually read this article!
Replied 2007 Sep 17 07:48 AM by Jane. reply
Nice one!!! Thanks a lot, thought my hubby was going to kill me when he got home LOL
Replied 2008 Apr 21 03:58 AM by Andy. reply
Thank you Steve, what a puzzler! Do you know how to reload Norton system works without buying it? I just want to uninstall my (useless) copy and stop a 'setup' page on startup. Mailto: dairymoor@gmail.com, thanks.
Replied 2007 Oct 24 16:35 PM by Henk de Raadt. reply
I'm suddenly not an expert with PC's. Thanx to my son who gave me this tip! And very very much thanx for your solution. This did it definitly!
Excuse me for my English, I'm dutch

Henk
Replied 2008 May 14 04:25 AM by Ferreira. reply
Incredible... You're the best...! Thanks a lot!
Replied 2008 Jul 07 13:35 PM by Yasaf D. reply
This fixed my problem. Thanks! I had installed ColorFolder or something like that when it happened. Must be a bug in that program. Then I uninstalled the program, but it left me with this problem.
Replied 2010 Apr 12 13:34 PM by Mike. reply
Thanks for th tip. I had the value of "find" in the box. I replaced it with "none' and it worked.
Replied 2010 Aug 25 19:50 PM by JT. reply
It worked perfect!!! :) Thanks a ton! :)
Replied 2011 Nov 01 15:14 PM by Sandy. reply
Wonderful! Thank you! You've saved me hours of searching!!
Posted 2007 Sep 21 12:18 PM. reply
WOW thanks a bunch, I have had this issue with a client for the last few days and I was scratchin my head. Couldn't find much on it either, thanks a million!

TonyRingo
Posted 2007 Sep 26 15:20 PM. reply
Very helpful. The title was easy to Google and it resolved a very annoying issue. Thanks a bunch.

Scott
Reply 2007 Sep 26 18:32 PM by steve. reply
I honestly didn't expect anyone would ever read this article, but I should have known that if I've had the problem, thousands of other people have too.
Replied 2008 Jan 07 09:42 AM by hellomousey. reply
thank you thank you thank you! i'd all but given up on this issue!
Posted 2007 Oct 03 19:53 PM. reply
I did not have this problem but thought this was an excellant presentation

Your Mopther
Posted 2007 Oct 08 17:25 PM. reply
Thanks, this solved my problem!

Darren
Posted 2007 Oct 10 06:20 AM. reply
That really hit the spot!
Thanks a lot for taking the time to publish your great find!

KP
Replied 2009 Feb 28 14:50 PM by Brian. reply
Thanks for your help - this was driving me nuts!
Posted 2007 Oct 29 12:02 PM. reply
Thank you very much, had exactly the same problem.

Jos
Posted 2007 Nov 02 12:48 PM. reply
Yup. This was a weird one. My wifes notebook and her desktop had the same problem. I've been in this business for awhile and have never seen this until now. I suspect a software install did it when integrating into the shell. Made a note of this one for sure. Good job dude.

Now for Bill G's next magical trick...

Al Baker
Posted 2007 Nov 07 09:59 AM. reply
Yes, solved my problem after I had added a 'Print Directory Listing' item to the right-click menu.

Peter
Posted 2007 Nov 24 22:19 PM. reply
Had this problem for a year and a half. Thank you for the tip. It worked great.

Erik
Posted 2007 Nov 28 08:22 AM. reply
helped...thanks

rohit
Posted 2007 Dec 12 07:08 AM. reply
I suspect an update or new malware-filter install caused this problem for me, but your fix cleared it right up. Thanks.

IndygoDave
Posted 2007 Dec 17 23:12 PM. reply
Hey Steve

Thanks a lot for the information.i never ever tried changing registries but you info helped me a lot.it just sorted the problem.I was too irrittaed with the issue.All sorted out now .

Esha
Posted 2007 Dec 26 19:08 PM. reply
Cool, I had this problem, like you said I was also messing with "File Types" after following your instructions its gone.

Thanks a lot for your post.

Balaji
Posted 2007 Dec 26 20:12 PM. reply
Great! This was driving me nuts! I had added "Print Directory Listing" as an option and this must have pushed Search to the top of the list. Thanks.

Jim
Posted 2008 Jan 16 05:23 AM. reply
Thanks very much saved me a reinstall :D
BR ED

ED
Posted 2008 Jan 17 00:13 AM. reply
I never thought a solution for a problem as specific as this could be found, never mind work so well, so easliy. Thanks huge.

thebone
Posted 2008 Jan 23 06:57 AM. reply
Same here also added a 'Print Directory Listing'
THANKS a stack

South Africa
Posted 2008 Jan 25 10:12 AM. reply
FANTABULOUS!

thanks!
quick simple and easy!
I guess i changed something while changing icons and themes

Tony
Posted 2008 Jan 30 14:54 PM. reply
good man, works a treat and has been annoying me.

ste
Posted 2008 Feb 07 22:32 PM. reply
Made my day! Many thanks.

eagle4
Posted 2008 Feb 11 09:04 AM. reply
Hallelujah--Life is good, once again! Thank you so much for your very well explained solution! The level of detail you provided was perfect.

CarolinaGirl
Posted 2008 Feb 26 18:17 PM. reply
Please help!! I want to get this solution too but I don't know what a registry edit is or how to get to the screenshot you show under "Fix the problem with a registry edit." Where is this "registry" of which you speak? How can I get there?

SH
Reply 2008 Feb 26 21:59 PM by steve. reply
1) Click your start menu 2) Select "Run" 3) type 'regedit' without the quotes, this will open the registry editor. good luck, Steve
Posted 2008 May 03 04:02 AM. reply
Your posting resolved this same very annoying issue for me too. I too had been looking only in folder options and didn't change anything just clicked ok - that started the problem. But fixed now thanks to your posting.

Alexandra
Posted 2008 Jun 06 01:50 AM. reply
Great..........thanks man......U are a genius.........

ashish
Posted 2008 Jun 11 22:43 PM. reply
Thanks! That was really helpful!

Misty
Posted 2008 Jun 24 08:31 AM. reply
SUPER, simply too good!!!! I thought I may not find this answer by typing "when i click a folder in explorer search window opens" and the first thing I found was your response.

Your 2-3 hrs were well spent sir. Thanks a ton again.

Ashish G
Posted 2008 Jul 03 09:28 AM. reply
Works perfectly Thanks 1e6

Allan
Posted 2008 Aug 12 08:08 AM. reply
Magic. I tried at first and mistakenly edited

HKEY_CLASSES_ROOT\Directory\Default

instead of

HKEY_CLASSES_ROOT\Directory\Shell\Default

Which of course didn't work. When I read what you'd actually written properly it sorted it. :)

Paul
Posted 2008 Aug 28 14:55 PM. reply
Thanks for the good directions on how to fix this problem. I had saved a bat file to the Windows folder per a microsoft how-to so I could print a folders directory. That worked but wheen I opened a folder later it went to search mode.

Razz Hjelle
Posted 2008 Aug 31 02:17 AM. reply
Thank you. It worked.

XXX from Finland
Posted 2008 Sep 07 04:25 AM. reply
Works like a charm! Even in the Netherlands ;-)
Thank you.

Dutch guy
Posted 2008 Oct 29 18:50 PM. reply
Thank-you, Thank-you, Thank-you, and didn't even take a reboot. I just can't believe this has happened to so many and would be very curious to know the cause.

TheWeldor
Posted 2008 Nov 19 22:17 PM. reply
Hallelujah! And no need to reboot, like another site suggested.

Matt Waite
Posted 2008 Dec 30 09:45 AM. reply
Thanks a ton buddy!

Barathi
Posted 2009 Jan 18 23:34 PM. reply
Thank you for the help. This took me by supprise and just started four days after a fresh install of XP Home and SP3. Everything was fine until one start up and there it was. Clicking on any folder would open the search funtion. I had not messed with anything in folder options or the registry, and have never had the problem before using XP. At the same time, I noticed that all folder icons on a burned backup DVD were changed to the IE icon instead. XP was wiggin out and I hope it doesn't happen again.

Tom B.
Posted 2009 Mar 06 13:36 PM. reply

Bill Lessiter
Posted 2009 Mar 06 13:43 PM. reply
SpotOn, You are a STAR Fixed in two ticks Many thanks.

Bill Lessiter
Posted 2009 Mar 17 13:37 PM. reply
Yo, thanks... This was very helpful...

Anonymous
Posted 2009 Apr 15 01:45 AM. reply
same problem ... fiddled with folder icons and then suddenly folder default action: search

joe lion
Posted 2009 Jun 27 16:13 PM. reply
Wow can't believe I'm not the only one...and yes people are really reading this! Thanks a bunch!

Tasha
Posted 2009 Aug 10 11:58 AM. reply
That was a quick fix! For me anyway, thanks to you! Thanks!

Anonymous
Posted 2009 Oct 05 10:38 AM. reply
My problem was exactly as described, and your solution fixed it exactly as you said it would. Thanks!

Cherrington
Replied 2009 Oct 28 21:40 PM by Alex. reply
It seems like lots of people liked your solution. That includes me! Thank you!
Alex
Replied 2011 Dec 11 19:42 PM by Nelle. reply
This makes eevryhting so completely painless.
Posted 2009 Oct 30 14:11 PM. reply
Adding my comment to others, yes, I encountered this problem immediately after applying a fresh set of Windows updates from the most recent patch Tuesday and have spent hours trying to fix it. For some reason it also apparently set the default browser to something other than IE. I don't know whether the two are related. In any case, thanks for the fix. Gardoglee 2009/10/30.

Gardoglee
Posted 2009 Nov 18 16:58 PM. reply
Extreme Thank You

utz
Posted 2010 Apr 14 11:02 AM. reply
I have to say, Steve, that your article is still very helpful after three years. Thanks so much.

Pamela
Posted 2010 Apr 17 08:29 AM. reply
great thanks a lot

Jayesh
Posted 2010 May 08 01:43 AM. reply
This was EXACTLY what I was looking for! (My computer was trying to open directories with VLC media player, for some reason.) Thanks for the clear and useful article!

Robert
Posted 2010 Jul 22 14:11 PM. reply
Thanks for the help! It worked!

DAwn
Posted 2010 Oct 12 03:27 AM. reply
Thank you for keeping this post on for so long - I had the problem yesterday after changing my folder options to show file extensions. I tried to undo it by going back but it didnt' work. Your post worked perfect. thanks again xx

Denise
Posted 2010 Nov 03 14:40 PM. reply
Yes, it did work ... thank you

bea
Posted 2011 Feb 20 19:31 PM. reply
Your solution worked brilliantly. Thanks for the indepth solution description.

Roy
Posted 2011 Mar 16 13:09 PM. reply
Great tip. Error happened when I created a right click option to add a new folder with today's date.

THANKS

Peter E
Posted 2011 Jun 19 07:46 AM. reply
You are a champion! Fixed my problem perfectly.

Jeff
Posted 2011 Jun 23 12:20 PM. reply
My rule is: I'll give myself 5 minutes if I have no idea what the cause is, I'll look for the solution in Internet, and yours was the first attempt and it worked.

Juany
Posted 2011 Jul 12 10:54 AM. reply
It Helped, Thanks

eric
Posted 2011 Jul 17 08:00 AM. reply
Thank You... It happened to me when I removed a couple of unused programs.

John
Posted 2011 Aug 25 13:37 PM. reply
very veru useful & thanks alot - i have big problem & became nervios . thanks

mohammad teimouri from iran
Posted 2011 Oct 06 14:11 PM. reply
Hi Steve,
I ran SpeedMaxPC which knackered all my desktop folders opening them up in windows search.
Tried your reg fix and spot on well done you are a God.

Dogbreff
Posted 2011 Oct 14 09:32 AM. reply
This actually worked, thanks!!!!!

Nikki
Posted 2011 Oct 31 09:40 AM. reply
Thanks a lot man, it worked! my it guys couldn't do it!

héctor
Posted 2011 Nov 20 02:18 AM. reply
Thanks a lot. Even our IT guys could not help me. Now it's fixed fine!

Moh'd Mehran Manesh
Posted 2012 Jan 06 07:54 AM. reply
THANK YOU.

Bob
Posted 2012 Jan 25 21:48 PM. reply
Thanks for this nice article. I have followed the process you have describe here but my problems have not fixed yet. can you please give any idea?

sanjib
Post Your Comment
  You may post without logging in or login here.
Display Name: Required.
Email: Required. Will not be shown. Used for identicon.
Comment:
Allowed tags: <quote></quote>, <code></code>, <b></b>, <i></i>, <u></u>, <red></red>
 
   Please type text as shown in the image at left.