Keil Logo

µVISION1: RUNNING A BATCH FILE/EXECUTABLE FILE BEFORE BUILD


Information in this article applies to:

  • µVision Version 1
  • C166 Version 3.12
  • C251 Version 2.14
  • C51 Version 5.50

QUESTION

I have written a batch file that generates one large temporary assembly file from several smaller ones. I want to run this batch file automatically before every build of my project. How can I do this?

ANSWER

This is easy to achieve by following the steps below:

  1. Choose Edit Project from the Project menu.
  2. Click on the Add button and select your batch file.
  3. Select your batch file in the Source Files list and click on the Move Up button until it is at the top of the list. This will ensure that it is executed first.
  4. Uncheck the Execute after Link/Lib option to ensure that it is only executed at the start of the build.
  5. Enter any arguments for the batch file into the Args box.
  6. Click on OK.

The same method can be used for executables and command files.

Last Reviewed: Thursday, June 10, 2004


Did this article provide the answer you needed?
 
Yes
No
Not Sure
 
  Arm logo
Important information

This site uses cookies to store information on your computer. By continuing to use our site, you consent to our cookies.

Change Settings

Privacy Policy Update

Arm’s Privacy Policy has been updated. By continuing to use our site, you consent to Arm’s Privacy Policy. Please review our Privacy Policy to learn more about our collection, use and transfers
of your data.