Script Files

Top  Previous  Next

The ChipProgUSB program can execute so-called script files in a way similar to how the MS DOS executes the batch files. The script file mechanism was implemented in the ChipProgUSB in order to automate usage of the ChipProg programmers. By means of script files you can, for example, automate loading files to the programmer buffers, calculating checksum, launching  device programming, pausing programming in case of an error, manipulating windows and performing many other operations. It is also possible to display various messages in the Console window or other special windows generated by the script itself, including displaying graphical data in special windows; to create user's custom menus, etc. The script language is similar to C program language; almost all C constructions are supported, except for structures, conjunctives and pointers. There are also many built-in functions available, such as printf(), sin() and strcpy(). The extension of script source file is .CMD.

 

When the ChipProgUSB program starts, it searches for the script with the reserved name START.CMD. So, if you wish the ChipProgUSB program would automatically perform some operations immediately after you launch the program, you can create a special script. The ChipProgUSB program begins searching for the START.CMD in the current directory on the disc, then it searches for this script in the directory where the ChipProgUSB.exe file resides. If the START.CMD is not located then a default ChipProg shell will open.

 

The scrips controls and associated dialogs and windows are concentrated under the Script menu. The major dialog that controls scripts is the Script Files dialog.

 

See also:

Simple example of a script file

How to write a script file

How to start a script file

How to debug a script file

Description of Script Language

Script Language Built-in Functions

Script Language Built-in Variables

Difference Between the Script Language and the C Language

Alphabetical List of Script Language Built-in Functions and Variables