
7 RASExpress Script Language
CommPlete Communications Server 153
Compiling a Script File
The process of compiling converts the source code into an executable file, which is
also to say that there are now two versions of your script file. One version (with the
.SCR extension) is the source code, which can be altered by you in any text editor.
The other version is the script file’s executable form (with a .COD extension), which
cannot be directly modified by you.
To compile a script file from the DOS prompt, copy the source file to the directory
where RASExpress is installed (typically C:\RAS550), and run the SCRIPT.EXE
utility. The syntax is SCRIPT file_name <CR>. The compiled file must remain in the
RASExpress directory.
Script Error Handling
When a script file is compiled, any errors that may occur are recorded in an error file
to assist you in debugging the source code. The name of the error file is
file_name.OUT. For example, if you compile MTS_HOST.SCR and RASExpress
encounters errors in your script, those errors are flagged in MTS_HOST.OUT.
Running a Script File
A RASExpress script file can be run only on a LAN-to-LAN dialing port. To run the
script file automatically, access the RASExpress configuration program using a ter-
minal, Telnet, Web, or DOS interface, select Communication Setup from the main
menu, select Line Information, and type the name of the compiled script file in the
Script File Name field. In all cases, type the file name without the .COD extension.
Komentáře k této Příručce