Using pre-and post- scripts

On the Tools menu, click Project Options and navigate to the Processing Options tab.

Image:buildplus user defined scripts.PNG


User Defined Scripts

This allows you to run a Visual Basic script before, during and/or after the build process.

  1. Create scripts that perform the actions that you require.
  2. Identify the location of the User Script #1 to be run and/or User Script #2 to be run (either by typing in the edit box or using the Browse button to find the file), including the full path to the file and the file extension, for example C:\scripts\myscript.vbs.
  3. For each script, check the Check return code for failure box if successful execution of your script is critical for a successful build, and enter the Success Code expected.
  4. Choose when the script should be run from the three options listed for Run this script:
  5. Check the Don't Ask box if you don't wish to be asked whether the script should be run.
  6. Check the Skip button for the script to not be run.
  7. If the Don't Ask checkbox is not selected, BuildPlus will ask whether to run the script. (During the build, if you don't respond within five minutes, the script will run.)

For example, you might run a script to copy over some specific files before a build begins, and then run another script to delete them when the build completes.

See also