Writing Script Files

Each script must be a complete ESSCMD session, with login, application and database selection, logout, and termination commands.

To create a script:

  1. Enter ESSCMD commands in a text editor.

  2. Save the file with the .SCR extension.

For example, the following script file, TEST.SCR, was created in Notepad:

LOGIN "LOCAL" "TOMT" "PASSWORD";
SELECT "SAMPLE" "BASIC";
GETDBSTATE
EXIT;

When run from the operating system command line, this script logs TomT into the Local server, selects the Sample application and Basic database, gets database statistics, and quits ESSCMD.