Is it possible to specify in the bat-file using which program to open the registered file?

I run a file that does not have permissions and I cannot assign some default program accordingly, so every time I start I have to choose what to open with. In particular, it is necessary that the registered file is opened using iexplorer.exe.

  • iexplorer.exe some.file.ext - not? - Vladimir Martyanov
  • Answer "program" "file". for example c: \ windows \ notepad.exe "my file.org" - nick_n_a

1 answer 1

As a rule, the console program can pass the file being opened through an argument. For example:

> Notepad.exe index.html