Skip to main content

IAR Embedded Workbench for RX 5.20

Adding command line commands to the Tools menu

In this section:

Command line commands and calls to batch files must be run from a command shell. You can add command line commands to the Tools menu and execute them from there.

To add a command, for example Backup, to the Tools menu to make a copy of the entire project directory to a network drive:

  1. Choose Tools>Configure Tools to open the Configure Tools dialog box.

  2. Type or browse to the cmd.exe command shell in the Command text box.

  3. Type the command line command or batch file name in the Argument text box, for example:

    /C copy c:\project\*.*
    F:

    Alternatively, use an argument variable to allow relocatable paths:

    /C copy $PROJ_DIR$\*.* F:

    The argument text should be specified as:

    /C name

    where name is the name of the command or batch file you want to run.

    The /C option terminates the shell after execution, to allow the IDE to detect when the tool has finished.