Command-line-argument variables, Command-line-argument variables -11 – Gasboy CFN III Manager Manual V3.6 User Manual
Page 209
MDE-4871 CFN III Manager’s Manual for Windows® XP Embedded - Version 3.6 · August 2010
Page 19-11
Variables for Use in Command Files
Making Your Own Commands
In two of the last three variables above, %M7C# and %M8C#, the # can be replaced by the
console number, as described, or it can be replaced by a %a-%z user variable (discussed in this
chapter and the Advanced command files chapter) to allow variable selection of the console
number.
Command-line-argument Variables
These are the variables that can be used in command-line arguments:
Name
Definition
%0
Number of arguments on command line.
%1 - %9
Command line arguments one through nine.
You can use command-line arguments in command files. Command-line arguments are strings
typed on the command line after the command and separated by spaces. The form is the same
as is used by Windows XP or MS-DOS.
Where you want to use the argument in the file, put a percent sign (%) followed by the position
number of the arguments on the command line. Arguments entered after a command are
numbered from left to right, starting with 1. The first argument after the command is %1, the
second argument is %2, and so on.
%C
Where command is being executed from:
1 = local command port (command terminal)
2 = remote command port
3 = cron
8 = Profit Point #1
9 = Profit Point #2
10 = Profit Point #3
11 = Profit Point #4
%R
Site run level:
0 = running
1 = blocking new transactions
2 = stopped
3 = emergency stopped
4 = memory full
5 = crashed
%Fd
Returns the amount of free space on the specified drive (where d is the drive)
%M
Miscellaneous options where # stands for:
0 = returns the value (in cents) contained in a non-resettable totalizer that adds the
absolute value of all sale-related items; that is, all sales add to the totalizer,
regardless if they are reversals, returns, payouts, etc. (Must have JOURNAL.LOG
enabled.)
1 = returns the initial drawer balance in SYS_PAR
2 = transaction number of first transaction in file
3 = transaction number of last transaction in file
4 = status of bank modem (0=down, 1=available, 3=connected)
5 = status of CFN modem (0=down, 1=available, 3=connected)
(for 6 - 8 see the discussion in the NEXT CLERK command about the unique shift #s
for every console parameter in SYS_PAR)
6 = if the SYS_PAR parameter is enabled, returns a 1; if disabled, returns a zero
7C# = if the SYS_PAR parameter is enabled, returns the shift number of console #;
if disabled, returns the system’s shift number
8C# = if the SYS_PAR parameter is enabled, returns the shift serial number of
console #; if disabled, returns the system’s shift serial number
9 = returns CFN Remote port config 0=Dumb, 1=ANSI, 2=VT52
Name
Definition