TotalNET Advanced Server 5.2 Reference Manual

include

This command, similar to the DOS call batch command, executes a sub-script from within the login script. Sub-scripts can only contain commands valid in login scripts, including other login scripts. You can use any text editor or word processor to create and edit subscripts, as long as you save the files in text-only format.

You may nest sub-scripts as memory allows. When a sub-script completes execution, control returns to the script that called it. You must have at least "read" access to the subscript.

Usage

include [path]filename

Options

path 

Specify the path to the sub-script file. 

filename 

Specify the name of the sub-script file. 

Example

Use the following command to execute the sub-script monday.bat at c:\ in an if...then login script:

if day_of_week = "monday" then include c:\monday.bat