Command line options for PCSWS.EXE
You can use the following options when creating or modifying a batch file.
- To specify which view should be used during a session, add the
command
/V=myview, wheremyviewis the name of the previously saved view:
If the specified view does not exist, the command is ignored. See Managing Emulator Sessions for information on how to save a view.C:\ZIEWin\PCSWS.EXE C:\AppData\LAN1.WS /V=myview - To suppress the HCL logo when you start one or more sessions,
add the parameter
/Qto the first command in the batch file:
whereC:\ZIEWin\PCSWS.EXE C:\AppData\TCPIP1.WS /QC:\ZIEWin\is the directory where you have Z and I Emulator for Windows installed, and C:\AppData\ is the Application Data directory. - To start a session as an icon, not as a window, add the parameter
/Ito the command in the batch file:
whereC:\ZIEWin\PCSWS.EXE C:\AppData\LAN1.WS /IC:\ZIEWin\is the directory where you have Z and I Emulator for Windows installed, and C:\AppData\ is the Application Data directory. - To start a hidden session, not as an icon
or a window, add the parameter
/Hto the command in the batch file:
whereC:\ZIEWin\PCSWS.EXE C:\AppData\LAN1.WS /HC:\ZIEWin\is the directory where you have Z and I Emulator for Windows installed, and C:\AppData\ is the Application Data directory. - To start a session with a specific short session ID (session letter),
insert the parameter
/S=mafter PCSWS.EXE in the batch file:
whereC:\ZIEWin\PCSWS.EXE /S=m C:\AppData\LAN1.WSC:\ZIEWin\is the directory where you have Z and I Emulator for Windows installed,mis the short session ID, andC:\AppData\is the Application Data directory. - To start a macro after the session start, add the parameter
/Mto the command in the batch file:
whereC:\ZIEWin\PCSWS.EXE C:\AppData\LAN1.WS /M=mymacroC:\ZIEWin\is the directory where you have Z and I Emulator for Windows installed,C:\AppData\is the Application Data directory,
is the profile, andLAN1.WS
is the Z and I Emulator for Windows macro/script file name.mymacroIf the specified macro/script does not exist, there will be a pop up with "PCSKBD400- The file: <macro name> is not a Z and I Emulator for Windows macro/script-file."
Note:
- If you use the /S option to assign A as the short session ID,
you should use this option for all of the sessions in the batch file.
Otherwise, if another session starts first, it becomes the A Session
and the session with the
/S=aoption will not start because of the conflicting short session IDs. Another way to prevent conflicts is to assign a character later in the alphabet for the short session ID. - Several parameters can be specified for controlling the particular characteristics for starting sessions; the switch values are designated by a single character.