!script – Run script files
Use this console command to process a .FIL or .TDR script file.
Format
- filename
- is a file name with an extension of .FIL or .TDR. If you specify a file
name with some other extension, the command is rejected.
The file must be formatted correctly based on the type indicated by the file name extension. If either a syntax error or a runtime error occurs during processing, an error is reported on the console and processing of the script ends. You can specify the complete file name directory path. The default path is the directory where the console was started.
- resumenbr
- is the line number where the script continues. Specify a numeric value greater than 0.
- stopnbr
- is the line number of the last command that is run before the script stops. Specify a numeric value greater than 0.
- Px=parameter
- specifies one or more parameters to pass to a script, where x is a number from 1 to 10 and parameter is an argument.
Additional information
- When the console
commandareaoption is specified as disable in the session configuration file (for example,console.commandarea=disable), the !script command becomes disabled. - You must code the resumenbr or stopnbr parameter before you code the Px parameter.
- Parameters without values specified will be interpreted as being empty.
Examples
The following command runs a .TDR script
file named
chkstatus.tdr in the local directory. !script chkstatus.tdrRelated information
- See Console commands for information about the console commands.
- See the RAVEN Programmer's Guide for more information about the TDRV variation.
