Edit, Print, Open missing from shell context menu for .cmd and .bat files

0 views
Skip to first unread message

Matt Williamson

unread,
Jun 14, 2006, 11:18:39 PM6/14/06
to
This is something that I've become very accustomed to using at work and it's
missing from my home PC. I'm running XP Pro Sp2 on both. This is all the
info I could come up with so far. I compared it against my machine at work
and it's pretty much the same minus a few additional menu items for other
programs, but that wouldn't effect this. Is there anything else I might be
missing?

C:\Documents and Settings\Administrator>ver

Microsoft Windows XP [Version 5.1.2600]

C:\Documents and Settings\Administrator>assoc .cmd=cmdfile
.cmd=cmdfile

C:\Documents and Settings\Administrator>ftype cmdfile
cmdfile="%1" %*

C:\Documents and Settings\Administrator>reg query "HKCR\cmdfile" /S

! REG.EXE VERSION 3.0

HKEY_CLASSES_ROOT\cmdfile
<NO NAME> REG_SZ Windows NT Command Script
EditFlags REG_BINARY 30040000

HKEY_CLASSES_ROOT\cmdfile\DefaultIcon
<NO NAME> REG_EXPAND_SZ %SystemRoot%\System32\shell32.dll,-153

HKEY_CLASSES_ROOT\cmdfile\shell

HKEY_CLASSES_ROOT\cmdfile\shell\edit

HKEY_CLASSES_ROOT\cmdfile\shell\edit\command
<NO NAME> REG_EXPAND_SZ %SystemRoot%\System32\NOTEPAD.EXE %1

HKEY_CLASSES_ROOT\cmdfile\shell\open
EditFlags REG_BINARY 00000000

HKEY_CLASSES_ROOT\cmdfile\shell\open\command
<NO NAME> REG_SZ "%1" %*

HKEY_CLASSES_ROOT\cmdfile\shell\print

HKEY_CLASSES_ROOT\cmdfile\shell\print\command
<NO NAME> REG_EXPAND_SZ %SystemRoot%\System32\NOTEPAD.EXE /p %1

HKEY_CLASSES_ROOT\cmdfile\shellex

HKEY_CLASSES_ROOT\cmdfile\shellex\DropHandler
<NO NAME> REG_SZ {86C86720-42A0-1069-A2E8-08002B30309D}

HKEY_CLASSES_ROOT\cmdfile\shellex\PropertySheetHandlers

HKEY_CLASSES_ROOT\cmdfile\shellex\PropertySheetHandlers\PifProps
<NO NAME> REG_SZ {86F19A00-42A0-1069-A2E9-08002B30309D}

HKEY_CLASSES_ROOT\cmdfile\shellex\PropertySheetHandlers\ShimLayer Property
Page
<NO NAME> REG_SZ {513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}

C:\Documents and Settings\Administrator>reg query "HKCR\.cmd" /S

! REG.EXE VERSION 3.0

HKEY_CLASSES_ROOT\.cmd
<NO NAME> REG_SZ cmdfile

HKEY_CLASSES_ROOT\.cmd\PersistentHandler
<NO NAME> REG_SZ {5e941d80-bf96-11cd-b579-08002b30bfeb}

C:\Documents and Settings\Administrator>reg query
"HKCR\CLSID\{5e941d80-bf96-11cd-b579-08002b30bfeb}" /S

! REG.EXE VERSION 3.0

HKEY_CLASSES_ROOT\CLSID\{5e941d80-bf96-11cd-b579-08002b30bfeb}
<NO NAME> REG_SZ Plain Text persistent handler

HKEY_CLASSES_ROOT\CLSID\{5e941d80-bf96-11cd-b579-08002b30bfeb}\PersistentAddinsRegistered

HKEY_CLASSES_ROOT\CLSID\{5e941d80-bf96-11cd-b579-08002b30bfeb}\PersistentAddinsRegistered\{89BCB740-6119-101A-BCB7-00DD010655AF}
<NO NAME> REG_SZ {c1243ca0-bf96-11cd-b579-08002b30bfeb}


Ramesh, MS-MVP

unread,
Jun 15, 2006, 12:30:14 AM6/15/06
to
Matt,

Third-party shell extensions can cause weird problems sometimes. To isolate
the problem, use one of these two methods:

Option 1: Follow "Method 2" in the following link:
http://windowsxp.mvps.org/slowrightclick.htm


Option 2: Open Regedit.exe and navigate to the following keys:
[HKEY_CLASSES_ROOT\*\shellex]
[HKEY_CLASSES_ROOT\AllFilesystemObjects\shellex]

In each of the above location, rename the "shellex" value to "oldshellex".
Now, try to right-click a .CMD or a .BAT file. If the missing context menu
items (open, edit, print) are restored, then the problem is caused by a
shell extension. Next you can drill-down the investigation by renaming one
shell extension at a time to determine the culprit.

IMO, Option 1 is preferrable.

--
Regards,

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


"Matt Williamson" <ih8...@spamsux.org> wrote in message
news:PqydnSokub79TA3Z...@adelphia.com...

Matt Wiliamson

unread,
Jun 16, 2006, 12:26:03 AM6/16/06
to
It was the Acrobat Elements context menu that did it. After disabling it,
everything works as expected.

Thanks

Matt

"Ramesh, MS-MVP" <ram...@XOX.mvps.org> wrote in message
news:OM7$gRDkGH...@TK2MSFTNGP04.phx.gbl...

Ramesh, MS-MVP

unread,
Jun 16, 2006, 1:16:41 AM6/16/06
to
Excellent!

--
Regards,

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


"Matt Wiliamson" <ih8...@spamsux.org> wrote in message
news:%23gQYezP...@TK2MSFTNGP04.phx.gbl...

Reply all
Reply to author
Forward
0 new messages