Batch Server User's Manual
Home Products Download Order

 

Contents

BatchSrv.exe command line reference
HostRun.exe command line reference
Log File

 

BatchSrv.exe command line reference

BatchSrv [/H] [/P:nnnn]
/H – optional parameter, that instruct BatchSrv not to display its icon in tray area. Can be changed later using HostRun;
/P:nnnn – override default IP port number used for communication with HostRun. You would want to change IP port for security reason, or to resolve conflict with another program, that might be using this port (very unlikely)

While the program is running you can invoke BatchSrv menu by right-clicking on its tray icon. 

HostRun.exe command line reference

HostRun [/Wn] [/P:nnnn] [/S] [/H] [/Q] <host> <command>
/Wn – optional parameter, specifies in what window to run command and whether it will has a focus set; n can take one of the following values:
0 –hidden window;
1 –normal window, focus;
2 – minimized window, focus;
3 – maximized window, focus;
4 – normal window, no focus;
5 – minimized window, no focus
/P:nnnn – IP port, nnnn should match /P:nnnn parameter for BatchSrv;
/S – show BatchSrv icon in a tray area;
/H – hide BatchSrv icon in a tray area;
/Q – quit; unload BatchSrv;
<host> – name or IP address of the computer running BatchSrv;
<command> – name of the program to execute and any required arguments or command-line switches. You must include the full path with extension to the location of the program. If you want to run internal DOS command (such as COPY) or run a program located on the PATH, specify it as a parameter to COMMAND, for example:
C:\WINDOWS\COMMAND.COM /C copy …
Note:
if you need to pass a command that contain redirection characters (|, > or <) enclose the entire <command> argument in double quotes. Otherwise, redirection will be processed locally.

Log File

BatchSrv.exe creates an execution history log file BatchSrv.log in the same folder where BatchSrv.exe installed.