The Run and Call commands support the following Keystroke system variables:
%DATADIR% - The current Keystroke data folder.
%MNUM% - The current Machine Number.
%REGISTER% - The current Register Number.
%SysInfo% - Encrypted system information including the current Clerk and Data Folder to use (including any overrides by database). This variable should only be used when running another Keystroke program (currently Dashboard.exe is the only one that supports it).
CALL=RUNDOS COPY %DATADIR%INV%MNUM%.KFO C:\TEMP\%REGISTER%.TXT
CALL=RUNDOS - tells Keystroke to run a DOS command.
COPY - is the command that Keystroke will run. It copies a file to another file or location.
%DATADIR%INV%MNUM%.KFO - is the name and path of the file that will be copied.
%DATADIR% - is the path - the current Keystroke data folder.
INV%MNUM%.KFO - is the name of the file.
C:\Temp\%REGISTER%.TXT - is the name and path to which the file will be copied.
C:\Temp - is the path - the TEMP folder on the C:\ drive.
%REGISTER%.TXT - is the name of the file.
Suppose that Keystroke is currently using the following settings:
Data folder - C:\KSData\
Machine Number - 1
Register Number - 2
%DATADIR% = C:\KSData\
INV%MNUM%.KFO = INV1.KFO
%REGISTER%.TXT = 2.TXT
So Keystroke would interpret the command as:
CALL=RUNDOS COPY C:\KSData\INV1.KFO C:\TEMP\2.TXT
copy INV1.KFO in the C:\KSData folder
to 2.TXT in the C:\Temp folder