Shell
Shell copied to clipboard
Always have Open With option for any file
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?
Restored the batchfile association using this method but how about with Shell?
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 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
Add it to the dynamic section of the 'shell.nss' file. Save changes, press CTRL + RIGHT-CLICK to reload settings.
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.
Excuse me. Do you need to open the "Open With" dialog box?
Yes, that's what's needed because something got messed up after uninstalling TakeCommand.
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)
Hello. I uninstalled 1.8.1 and registered the debug build. Two issues with the debug build:
- 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.
- no dynamic section in shell.nss - does it have to be added somewhere? Not seeing the 'Open with' option for batfiles and cmdfiles.
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
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?
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)
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?