Ok, this might not strictly be freeware, but it's free, and it's very useful at times.
If you've spent any time messing with default actions for file types or folders (in my case, trying to add "play this folder with 1by1") you'll inevitably end up with your default folder action screwed up, often searching a folder on doubleclick instead of opening it. Well, relax, because theres a very simple solution.
I came across a vbs file during a google search for a solution to this problem. The file is by Doug Knox, and available on www.dougknox.com. You can go there and download it, or you can just copy the source below into notepad and save it as whatever.vbs and run it. Et voila – your folders are fixed.
'folder_open.vbs – Fixes problem where Search opens on a double click
'© Doug Knox – 03/13/2002
'Downloaded from www.dougknox.com
Set WshShell = WScript.CreateObject("WScript.Shell")
p1 = "HKEY_CLASSES_ROOT\Directory\shell\"
p2 = "none"
WshShell.RegWrite p1, p2
p1 = "HKEY_CLASSES_ROOT\Drive\shell\"
WshShell.RegWrite p1, p2
X = WshShell.Run("REGSVR32 /I /S SHELL32.DLL",4,True)
Set WshShell = Nothing
MyBox = MsgBox("Folders will now Open when double clicked", 4096, "Finished!")