Jump to content

"Open With" option please


Yzöwl

Recommended Posts

I'm currently trying out a few different text/programming editors, so if I select a cmdfile for instance, I would like the option to 'open with' in order to choose from a list.

I don't wish to change the default program for a particular file extension, all I want is an open with options list.

In previous OS's a right-click or SHIFT + right-click on the file would reveal that option but not so this time!

I even thought of going through the 'change default' process and unchecking the 'always use this program' box in the hope it would create the list for me, however the check box is greyed out and therefore a non-starter.

There has got to be a simple solution for this...anyone!

Link to comment
Share on other sites


Hmmm - hate to say it, but it is working for me on known file types (like Office .doc files). If I right-click a file I've opened in the past, I have an "Open With" option with a list of all the programs I've recently used to open files of this type.

You aren't seeing this?

Link to comment
Share on other sites

Hmmm - hate to say it, but it is working for me on known file types (like Office .doc files). If I right-click a file I've opened in the past, I have an "Open With" option with a list of all the programs I've recently used to open files of this type.

You aren't seeing this?

Same here, no problems. 64 bit Win 7 RC 7100

Link to comment
Share on other sites

Okay, it does work with many file types but not all the ones I need.

For example, I get 'Open with...' on a right-click for .vbs .inf .js .txt .ps1 .reg .ini, but not for .cmd .bat.

So I'll reword my question, how do I enable Open with... for .bat .cmd and any other extension which may fail to offer that option.

Link to comment
Share on other sites

Ok, The only thing I could find shows it applies to old OS, but it describes the issue perfectly.

KB 259908

I would say if your trying to run another file using a BAT file, then try having it open a CMD prompt and then close it when done to execute it. I'm shooting from the hip here, lol.

Edited by Access Denied
Link to comment
Share on other sites

Well, this has really got me riled up, I cannot for the life of me understand why I cannot have the option to 'Open with...' any bat or cmd file. Even adding OpenWithList entries to the FileExts keys doesn't give me the option.

I know that I can create entries in the 'Send to' list which is very likely my only real option, I'd just like to have been able to use the same method for bat and cmd fies as for the other file types I generally use.

Link to comment
Share on other sites

Add menu items under right click

Found this posted my Microsoft Answers Support Engineer :

You can only associate one program with a file.

Windows uses those associations to find the correct program to open the file with.

If it is associated with more than one program it will cause a conflict.

You can change the associated program, but not add a second association.

There isn't a method that I'm aware of to add a entries manually to the right-click menu.

You may be able to accomplish this with 3rd party software.

I believe this is all of the Registry entries pertaining to the opening of BAT files as well:

Windows Registry Editor Version 5.00

; .BAT File association fix for Windows XP

; Copyright © 2006 Ramesh Srinivasan.

; http://www.winhelponline.com

[HKEY_CLASSES_ROOT\.bat]

@="batfile"

[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.BAT]

[HKEY_CLASSES_ROOT\.bat\PersistentHandler]

@="{5e941d80-bf96-11cd-b579-08002b30bfeb}"

[HKEY_CLASSES_ROOT\batfile]

@="MS-DOS Batch File"

"EditFlags"=hex:30,04,00,00

[HKEY_CLASSES_ROOT\batfile\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,2d,00,31,00,35,\

00,33,00,00,00

[HKEY_CLASSES_ROOT\batfile\shell]

[HKEY_CLASSES_ROOT\batfile\shell\edit]

[HKEY_CLASSES_ROOT\batfile\shell\edit\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,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\

54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,25,00,31,00,00,\

00

[HKEY_CLASSES_ROOT\batfile\shell\open]

"EditFlags"=hex:00,00,00,00

[HKEY_CLASSES_ROOT\batfile\shell\open\command]

@="\"%1\" %*"

[HKEY_CLASSES_ROOT\batfile\shell\print]

[HKEY_CLASSES_ROOT\batfile\shell\print\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,53,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,4e,00,4f,00,\

54,00,45,00,50,00,41,00,44,00,2e,00,45,00,58,00,45,00,20,00,2f,00,70,00,20,\

00,25,00,31,00,00,00

[HKEY_CLASSES_ROOT\batfile\shellex]

[HKEY_CLASSES_ROOT\batfile\shellex\DropHandler]

@="{86C86720-42A0-1069-A2E8-08002B30309D}"

[HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers]

[HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers\PifProps]

@="{86F19A00-42A0-1069-A2E9-08002B30309D}"

[HKEY_CLASSES_ROOT\batfile\shellex\PropertySheetHandlers\ShimLayer Property Page]

@="{513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}"

Edited by Access Denied
Link to comment
Share on other sites

That's quite the reg file...!

You can just add "Open with Notepad..." to your right-click - period.

; add 'open with notepad' to right context
[HKEY_CLASSES_ROOT\*\shell\Open with Notepad]
@=""

[HKEY_CLASSES_ROOT\*\shell\Open with Notepad\command]
@="notepad.exe %1"

I too have the same issues with .cmd and .bat <shrug>

Link to comment
Share on other sites

Okay, it does work with many file types but not all the ones I need.

For example, I get 'Open with...' on a right-click for .vbs .inf .js .txt .ps1 .reg .ini, but not for .cmd .bat.

So I'll reword my question, how do I enable Open with... for .bat .cmd and any other extension which may fail to offer that option.

It appears these file types all have a PersistentHandler key underneath them in HKCR, with (Default) pointing to {5e941d80-bf96-11cd-b579-08002b30bfeb}. Looking that CLSID up, it appears to be the "Plain Text persistent handler", which points to {c1243ca0-bf96-11cd-b579-08002b30bfeb}. Looking that CLSID up, it points to query.dll as an InProcServer32 handler, which means this .dll file is determining whether or not to show the "Open With" menu. I'm not digging further at the moment, but at least you know what .dll it's spawning from now.

Link to comment
Share on other sites

Thanks I got as far myself, thought about the time I was spending on it, weighed that against the time it would take me to use 'Send to' instead and took that route.

At the end of the day I'm only trying out a handful off editors, so the 'Send to' list can be reduced again as I remove the ones I don't like!

Anything other than a quick fix would likely have required unfixing when I'd finished anyway.

Link to comment
Share on other sites

  • 2 weeks later...
Thanks I got as far myself, thought about the time I was spending on it, weighed that against the time it would take me to use 'Send to' instead and took that route.

At the end of the day I'm only trying out a handful off editors, so the 'Send to' list can be reduced again as I remove the ones I don't like!

Anything other than a quick fix would likely have required unfixing when I'd finished anyway.

You may find this little app useful. It has the same "Send to" functionality but it can be customized to your likings.

I have just find it and will try it myself tomorrow.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...