How can I start a file with an associated non-default command (shell verb) like \"edit\", \"print\", ... from command-line or from a .bat script by usi
An example to show how to do it with an one-liner:
mshta vbscript:Execute("CreateObject(""shell.application"").ShellExecute""%SystemDrive%\autoexec.bat"","""","""",""edit"",1:close")
It will open the dummy autoexec.bat file with the application defined to edit .bat files (by default, Notepad).
autoexec.bat
.bat