Shell icon indicating copy to clipboard operation
Shell copied to clipboard

Always have Open With option for any file

Open vavavr00m opened this issue 2 years ago • 12 comments

I need to set batchfiles to open with CMD. Non-Windows Store Apps aren't selectable. I prefer not to reset all associations. How am I able to have file context menu to always have Open With with Shell to associate a file type with any program I want?

image

image

Restored the batchfile association using this method but how about with Shell?

vavavr00m avatar Jun 16 '23 10:06 vavavr00m

item(title="open batfile" find=".bat|.cmd" cmd='sel.path')

Pass arguments

item(title="open batfile" find=".bat|.cmd" cmd='sel.path' args="arguments")

moudey avatar Jun 17 '23 15:06 moudey

@moudey Thanks. How/Where do I add that line? I can see there's .bat .cmd there..

Additionally, is that for ..

always have Open With with Shell to associate a file type with any program

or for

restored the batchfile association using this method but how about with Shell

vavavr00m avatar Jun 17 '23 20:06 vavavr00m

Add it to the dynamic section of the 'shell.nss' file. Save changes, press CTRL + RIGHT-CLICK to reload settings.

moudey avatar Jun 17 '23 21:06 moudey

Added and reloaded. Open batfile appeared but can you please tell me what it does exactly? Clicking it doesn't do anything. Batchfiles & Cmdfiles are still associated with TakeCommand and I am unable to find the "Open With" dialog with any .bat or .cmd file.

vavavr00m avatar Jun 17 '23 22:06 vavavr00m

Excuse me. Do you need to open the "Open With" dialog box?

moudey avatar Jun 25 '23 22:06 moudey

Yes, that's what's needed because something got messed up after uninstalling TakeCommand.

vavavr00m avatar Jun 27 '23 06:06 vavavr00m

With the latest debug build the "openas" in the "verb" property has been corrected, as it shows the Open With dialog

item(title='test Open with' verb="openas" cmd=sel.path)

moudey avatar Jul 04 '23 21:07 moudey

Hello. I uninstalled 1.8.1 and registered the debug build. Two issues with the debug build:

  1. The context menu is now taking up a space. I was using the installer or did I get it from winget... regardless, it looked ok.
  2. no dynamic section in shell.nss - does it have to be added somewhere? Not seeing the 'Open with' option for batfiles and cmdfiles.

vavavr00m avatar Jul 05 '23 08:07 vavavr00m

The context menu is now taking up a space. I was using the installer or did I get it from winget... regardless, it looked ok.

There is only a change in the font size, you can modify or delete it.

no dynamic section in shell.nss - does it have to be added somewhere? Not seeing the 'Open with' option for batfiles and cmdfiles.

There are modifications in the sections where the variables, static and dynamic sections have been removed

moudey avatar Jul 08 '23 20:07 moudey

There is only a change in the font size, you can modify or delete it.

I will try to find this...

There are modifications in the sections where the variables, static and dynamic sections have been removed

This makes no sense to me and did not answer my questions directly. Can the explanation/instruction be further detailed?

vavavr00m avatar Jul 14 '23 21:07 vavavr00m

You will find the option to modify the font in the "imports/theme.nss" file.

font.size=20

Add this code at the end of the "shell.nss" file

item(title='test Open with' verb="openas" cmd=sel.path)

moudey avatar Jul 14 '23 22:07 moudey

You will find the option to modify the font in the "imports/theme.nss" file.

font.size=20

Gotcha. Thanks.

Add this code at the end of the "shell.nss" file

item(title='test Open with' verb="openas" cmd=sel.path)

The 'test Open with' still doesn't do anything with .bat or .cmd. Am I doing something wrong?

image

image

vavavr00m avatar Jul 17 '23 13:07 vavavr00m