Creating a Batch File

To create a batch file, use the following procedure:
  1. From the Session Manager dialog, click New Multiple Sessions. You can also start a new batch file from the Windows Start menu, using the HCL Z and I Emulator for Windows → Utilities → Multiple Sessions program.

    The Create/Modify Batch File panel appears.

  2. There are several methods for including profiles or programs in a batch file:
    • Double-click the file names in the File Name list box.
    • Drag and drop the file names (using the right mouse button) from the File Name box to Batch-File Entries.
    • Select a file name from the File Name list box and then select Add.
    • Type the complete path and command file name in the batch files entries area.
    • You can also use the Capture View button to capture multiple session windows into a view.

    Z and I Emulator for Windows places the full path and command that is needed to run the workstation profile or other program above the cursor line in the edit area. If there is no cursor, the command is added to the last line.

    To see the contents of the profile you added to the batch file, click it in the File Name list box and then click View File or the magnifying glass.

    Note: Some brief instructions appear at the top of Batch-File Entries; you need not remove them, because they do not affect the running of the batch file.
  3. Repeat step 2 for each subsequent file to be added.
  4. When you complete the edit, save the created batch file by selecting Save from the File menu.

    The Save Batch File As window appears.

  5. Enter a name for the batch file (*.BCH).

    The name you enter is used as the icon title, unless you enter a description as well.

The following example is a batch file that runs four workstation profiles located in the Application Data directory, and then runs MYAPP.EXE.

C:\dir\PCSWS.EXE C:\AppData\SLAN1.WS
C:\dir\PCSWS.EXE C:\AppData\SLAN2.WS
C:\dir\PCSWS.EXE C:\AppData\AS4Y1.WS
C:\dir\PCSWS.EXE C:\AppData\VT220.WS
C:\APPL\MYAPP.EXE
where C:\AppData is the Application Data directory specified during installation and dir is the installation directory.