- IAR Embedded Workbench for RISC-V 3.40
- IDE Project Management and Building
- The development environment
- Using and customizing the IDE
- Adding command line commands to the Tools menu
Adding command line commands to the Tools menu
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:
Choose Tools>Configure Tools to open the Configure Tools dialog box.
Type or browse to the cmd.exe command shell in the Command text box
.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:
/Cnamewhere
nameis the name of the command or batch file you want to run.The
/Coption terminates the shell after execution, to allow the IDE to detect when the tool has finished.