Run the script or command command .
Scripts are usually run by simply entering their name in the same way as a command is entered. However, the script is executed slightly differently if run using the Execute command. If a script is called from another script in the normal way, the called script is read in and parsed before the main script is executed. If the Execute command is used, the called script is not read in until and unless the Execute command is actually executed. This has two main applications.
; Avoid using Execute if a script is called within a loop. The script would be read in and parsed each time around the loop which is very inefficient.
Execute [/echo] <command> |
/allowextbi |
|
/echo |
Command is copied to the command history drop down box in the commend shell. |
/literal |
Indicates the text in command should be read literally. This switch should be used if the complete command along with any arguments are stored in a variable, to be accessed by Execute through braced substituion. See the example for further explanation. |
/startup |
Used by initialisation scripts to indicate that a command is being executed on startup. The function CommandStatus can be used to test this state. This switch must not be used in user scripts. |
command |
Command to be executed with arguments if required. See /literal above for more information. |
Use of the literal flag. If you have a script where a command to execute is contained within a variable, for example:
Let command = 'inst npn' |
Execute /literal {command} |
Execute /literal "inst npn" |
Execute inst npn |
Execute "inst npn" |
|