0

I have added a .bat file to the context menu of .avi files with the following .reg file:

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Classes\avi_auto_file\shell\RemuxvideotoMKV]
@="Remux video to MKV"
[HKEY_CURRENT_USER\Software\Classes\avi_auto_file\shell\RemuxvideotoMKV\command]
@="\"C:\\Program Files\\MKVToolNix\\Remux video to MKV.bat\" \"%1\""

It works. I now want the .bat file to start minimized.

I found an answer for almost exactly the same problem here, but I don't understand the syntax, as it refers to a slightly more complex command.

1 Answers1

1

According to the documentation here the following should work:

[HKEY_CURRENT_USER\Software\Classes\avi_auto_file\shell\RemuxvideotoMKV\command]
@="cmd /C start \"remux\" /MIN \"C:\\Program Files\\MKVToolNix\\Remux video to MKV.bat\" \"%1\""

start starts a batch or program, the /MIN switch starts the program minimised. There's also a /B to run without creating a new window.

As @JosefZ pointed out because start is part of the cmd shell (dotted entries in that link) it needs to be run from cmd.

pbhj
  • 164