PDA

View Full Version : Folder Shell Problem


January 24th 06, 09:48 AM
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

Code Blue
January 24th 06, 09:56 AM
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

Rick \Nutcase\ Rogers
January 24th 06, 11:02 AM
You may also like the powertoy "open command window here", see:
http://www.microsoft.com/windowsxp/downloads/powertoys/xppowertoys.mspx

--
Best of Luck,

Rick Rogers, aka "Nutcase" - Microsoft MVP
http://mvp.support.microsoft.com/
Associate Expert - WindowsXP Expert Zone
www.microsoft.com/windowsxp/expertzone
Windows help - www.rickrogers.org

"Code Blue" > wrote in message
oups.com...
> 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
>

Anando [MS-MVP]
January 24th 06, 12:40 PM
Hello,

You can re-register the shell32.dll and that should fix most of things. To do that, type the
following at Start / Run and press enter:

regsvr32 /i shell32.dll

--

Anando
Microsoft MVP- Windows Shell/User
http://www.microsoft.com/mvp
http://www.mvps.org


Folder customizations
http://newdelhi.sancharnet.in/minku

Protect your PC!
http://www.microsoft.com/protect


> wrote in message
ups.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
>

Ramesh, MS-MVP
January 24th 06, 01:04 PM
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


> wrote in message
ups.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

George Hester
January 24th 06, 03:20 PM
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.

--

George Hester
_________________________________
> wrote in message
ups.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
>

Code Blue
January 28th 06, 09:07 AM
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\app lication]
@="Folders"

[HKEY_CLASSES_ROOT\Folder\shell\explore\ddeexec\ife xec]
@="[]"

[HKEY_CLASSES_ROOT\Folder\shell\explore\ddeexec\top ic]
@="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\applic ation]
@="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\comma nd]
@="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\app lication]
@="Folders"

[HKEY_CLASSES_ROOT\Directory\shell\find\ddeexec\top ic]
@="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\app lication]
@="Directorys"

[HKEY_CLASSES_ROOT\Directory\shell\open\ddeexec\ife xec]
@="[]"

[HKEY_CLASSES_ROOT\Directory\shell\open\ddeexec\top ic]
@="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

Google