Folder Shell Problem

M

minimaximus

Hi,

while playing around with the File Types menu, I added a 'Command'
context menu item to start cmd.exe when the user chooses that command
by right-clicking a File Folder.

However, Windows didn't seem to like the 'Command' name of the item,
and made this action the default when I double click a folder (double
clicking a folder now opens cmd.exe)

I went into the Registry and changed HK_Classes_Root\Directory by
deleting the offending command, but then the folders just defaulted to
the next command (find).

so I manually created an entry called "Open" with the following exe:
%SystemRoot%\Explorer.exe /idlist,%I,%L

now folders open fine, however, each double click opens the next folder
in a new window, even though the settings in Folder Options says "Open
in Same Window"

Is there a way to fix this? it seems to have something to do with the
Explorer.exe options.

Thanks,

Alex
 
C

Code Blue

LOL, I just solved my own problem... I should've posted here a long
time ago ;)

I just copied the 'Open' registry key under the Folder key and
everything is back to normal.

Alex
 
R

Ramesh, MS-MVP

Click Start/Run and type this command to fix this problem:
(Tip from David Candy)

regsvr32 /i shell32.dll

-or-

Fix "Search" Opens Instead of Explorer:
http://www.dougknox.com/xp/scripts_desc/xp_folder_open.htm

-or-

To fix this manually via registry:

If this problem is seen for Drives:

HKEY_CLASSES_ROOT\Drive\shell
Set (default) to "none" (without ")

If this problem is seen for folders:

[HKEY_CLASSES_ROOT\Directory\shell]
Set (default) to "none" (without ")

--
Regards,

Ramesh Srinivasan, Microsoft MVP [Windows XP Shell/User]
Windows® XP Troubleshooting http://www.winhelponline.com


Hi,

while playing around with the File Types menu, I added a 'Command'
context menu item to start cmd.exe when the user chooses that command
by right-clicking a File Folder.

However, Windows didn't seem to like the 'Command' name of the item,
and made this action the default when I double click a folder (double
clicking a folder now opens cmd.exe)

I went into the Registry and changed HK_Classes_Root\Directory by
deleting the offending command, but then the folders just defaulted to
the next command (find).

so I manually created an entry called "Open" with the following exe:
%SystemRoot%\Explorer.exe /idlist,%I,%L

now folders open fine, however, each double click opens the next folder
in a new window, even though the settings in Folder Options says "Open
in Same Window"

Is there a way to fix this? it seems to have something to do with the
Explorer.exe options.

Thanks,

Alex
 
G

George Hester

Always back up the registry keys you are going to tamper with before you
tamper. Then if what you do you are not happy with, you can double-click the
saved reg file and get back to what you had easily. Remember this does not
always work but in most cases it will. That is why tampering with the
Registry can be risky.
 
C

Code Blue

After I did the initial fix, I still encountered problems with drives
going directly to Explorer (two window explorer, instead of just plain
folder browser)

I tried all the fixes above, but the drives are still defaulting to
Explorer.

Here's the registry entry for the drive, after I cleaned it up of all
the extraneous programs/entries:

[HKEY_CLASSES_ROOT\Drive]
@="Drive"
"EditFlags"=hex:d2,01,00,00

[HKEY_CLASSES_ROOT\Drive\DefaultIcon]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\

00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,\

65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,38,00,00,00

[HKEY_CLASSES_ROOT\Drive\shell]
@="none"

....it goes on with shellex stuff....


Here's the one for Folder:

[HKEY_CLASSES_ROOT\Folder]
@="Folder"
"EditFlags"=dword:000003d2
"TileInfo"="prop:Size"

[HKEY_CLASSES_ROOT\Folder\DefaultIcon]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\

00,5c,00,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,00,68,00,\

65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,33,00,00,00

[HKEY_CLASSES_ROOT\Folder\shell]
@="none"

[HKEY_CLASSES_ROOT\Folder\shell\explore]
"BrowserFlags"=dword:00000022
"ExplorerFlags"=dword:00000021

[HKEY_CLASSES_ROOT\Folder\shell\explore\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\

00,5c,00,45,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,2e,00,65,00,78,00,\

65,00,20,00,2f,00,65,00,2c,00,2f,00,69,00,64,00,6c,00,69,00,73,00,74,00,2c,\
00,25,00,49,00,2c,00,25,00,4c,00,00,00

[HKEY_CLASSES_ROOT\Folder\shell\explore\ddeexec]
@="[ExploreFolder(\"%l\", %I, %S)]"
"NoActivateHandler"=""

[HKEY_CLASSES_ROOT\Folder\shell\explore\ddeexec\application]
@="Folders"

[HKEY_CLASSES_ROOT\Folder\shell\explore\ddeexec\ifexec]
@="[]"

[HKEY_CLASSES_ROOT\Folder\shell\explore\ddeexec\topic]
@="AppProperties"

[HKEY_CLASSES_ROOT\Folder\shell\open]
"BrowserFlags"=dword:00000010
"ExplorerFlags"=dword:00000012

[HKEY_CLASSES_ROOT\Folder\shell\open\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\

00,5c,00,45,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,2e,00,65,00,78,00,\

65,00,20,00,2f,00,69,00,64,00,6c,00,69,00,73,00,74,00,2c,00,25,00,49,00,2c,\
00,25,00,4c,00,00,00

[HKEY_CLASSES_ROOT\Folder\shell\open\ddeexec]
@="[ViewFolder(\"%l\", %I, %S)]"
"NoActivateHandler"=""

[HKEY_CLASSES_ROOT\Folder\shell\open\ddeexec\application]
@="Folders"

[HKEY_CLASSES_ROOT\Folder\shell\open\ddeexec\ifexec]
@="[]"

[HKEY_CLASSES_ROOT\Folder\shell\open\ddeexec\topic]
@="AppProperties"

[HKEY_CLASSES_ROOT\Folder\shell\Switch User]

[HKEY_CLASSES_ROOT\Folder\shell\Switch User\command]
@="rundll32.exe user32.dll,LockWorkStation"


and here's the one for Directory, the one that started all the chaos:


[HKEY_CLASSES_ROOT\Directory\shell]
@="none"

[HKEY_CLASSES_ROOT\Directory\shell\Cmd_Prompt]
@="Cmd Prompt"

[HKEY_CLASSES_ROOT\Directory\shell\Cmd_Prompt\command]
@="c:\\windows\\system32\\cmd.exe /K cd %1"

[HKEY_CLASSES_ROOT\Directory\shell\find]
"SuppressionPolicy"=dword:00000080

[HKEY_CLASSES_ROOT\Directory\shell\find\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\

00,5c,00,45,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,2e,00,65,00,78,00,\
65,00,00,00

[HKEY_CLASSES_ROOT\Directory\shell\find\ddeexec]
@="[FindFolder(\"%l\", %I)]"
"NoActivateHandler"=""

[HKEY_CLASSES_ROOT\Directory\shell\find\ddeexec\application]
@="Folders"

[HKEY_CLASSES_ROOT\Directory\shell\find\ddeexec\topic]
@="AppProperties"

[HKEY_CLASSES_ROOT\Directory\shell\open]
"BrowserFlags"=dword:00000010
"ExplorerFlags"=dword:00000012

[HKEY_CLASSES_ROOT\Directory\shell\open\command]
@=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,74,00,25,\

00,5c,00,45,00,78,00,70,00,6c,00,6f,00,72,00,65,00,72,00,2e,00,65,00,78,00,\

65,00,20,00,2f,00,69,00,64,00,6c,00,69,00,73,00,74,00,2c,00,25,00,49,00,2c,\
00,25,00,4c,00,00,00

[HKEY_CLASSES_ROOT\Directory\shell\open\ddeexec]
@="[ViewFolder(\"%l\", %I, %S)]"
"NoActivateHandler"=""

[HKEY_CLASSES_ROOT\Directory\shell\open\ddeexec\application]
@="Directorys"

[HKEY_CLASSES_ROOT\Directory\shell\open\ddeexec\ifexec]
@="[]"

[HKEY_CLASSES_ROOT\Directory\shell\open\ddeexec\topic]
@="AppProperties"


--------------------------------------------------
I'm not sure where the problem lies, but after trying the above fixes,
everything is opening in a new Window now.

Please help.

Thanks,

Alex
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top