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

M

Matt Williamson

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}
 
R

Ramesh, MS-MVP

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


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}
 
M

Matt Wiliamson

It was the Acrobat Elements context menu that did it. After disabling it,
everything works as expected.

Thanks

Matt

Ramesh said:
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


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}
 
R

Ramesh, MS-MVP

Excellent!

--
Regards,

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


It was the Acrobat Elements context menu that did it. After disabling it,
everything works as expected.

Thanks

Matt
 

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