User Defined Commands - Batch Script (.BAT)

This command will generate a batch script (.bat) and run it.

Batch Scripts are based on the executable script system in Windows that goes back to the old DOS days. It is still used and is quite useful, especially if you want to run a lot of external programs one after the other. In addition, you can send the output of one program to be used as input to another.


When a Batch Script command is run a .bat file is generated from this command; the script is then run with its working folder set to the current source path.


MultiTags are specially formatted texts that will be replaced with dynamic information. For example, the MultiTag ${focusfilepath} will be replaced by the full file path to the file currently in focus. The command is run through a process that will translate MultiTags before it is executed.

Paths are not quoted by default, so if you need quotes around the path you have to put them around the MultiTag, e.g. "${focuspath}".


Read more about MultiTags


When you press the Option button you will get a list of options you can assign to the command.

(This list of options for Batch Script is not finalized yet)

Command Arguments

The dialog supports arguments to be sent to the command. These are sent to it if the command is called from the Command line bar or if files are dropped on a button and the command has enabled the option "Use Dropped files as parameter", or if this command is called from a Custom Command or MultiScript command.

The parameters are accessed by using the MultiTags ${param:<num>} where <num> identifies which argument to use. ${param:0} will be the first parameter, ${param:1} the second, ${param:2} the third and so on.