but cm_Associate does not support %2,
Code: Select all
Dialog box: Edit file type (internal associations)
With this dialog box, you can define or modify an existing file type, e.g. add new actions (verbs), modify or delete existing actions. Internal associations only work within Total Commander. Use Files - Associate with to change system associations.
Change icon Define the icon shown in Total Commander to the left of he associated file.
Type name The association type, e.g. *.txt for text files, or a saved search for more complex definitions. You can use the >> button to change it.
Description of type not used for internal associations
Actions Here you can define new file actions, or modify existing actions. The default action is the one started when you press ENTER on an associated file. 'Open' is always the default action for internal associations.
Open Program used for the 'open' action. This is always the default verb (used when pressing ENTER) for internal associations. You need to put %1 or "%1" (or %2) behind the program name so the file is passed as a parameter. The difference between %1 and %2 only appears when right clicking on multiple files. Choosing an internal command with %1 will open all selected files in separate editors, while %2 will pass them all to the same program. This will of course only work when that editor can accept multiple files as parameters.
With this dialog box, you can define or modify an existing file type, e.g. add new actions (verbs), modify or delete existing actions. Internal associations only work within Total Commander. Use Files - Associate with to change system associations.
Change icon Define the icon shown in Total Commander to the left of he associated file.
Type name The association type, e.g. *.txt for text files, or a saved search for more complex definitions. You can use the >> button to change it.
Description of type not used for internal associations
Actions Here you can define new file actions, or modify existing actions. The default action is the one started when you press ENTER on an associated file. 'Open' is always the default action for internal associations.
Open Program used for the 'open' action. This is always the default verb (used when pressing ENTER) for internal associations. You need to put %1 or "%1" (or %2) behind the program name so the file is passed as a parameter. The difference between %1 and %2 only appears when right clicking on multiple files. Choosing an internal command with %1 will open all selected files in separate editors, while %2 will pass them all to the same program. This will of course only work when that editor can accept multiple files as parameters.