Programming instructions
Intermec Fingerprint v7.61 – Programmer’s Reference Manual Ed. 752
Chapter 2 Program Instructions
COPY
Field of Application
Statement for copying fi les.
Syntax COPY<sexp
1
>[,<sexp
2
>]
<sexp
1
> is the name and optionally directory of the original fi le.
<sexp
2
> is, optionally, a new name and/or directory for the copy.
Remarks
This statement allows you to copy a fi le to another name and/or directory as an
alternative to LOADing the fi le in question and then SAVEing it.
If no directory is specifi ed for the original and/or copy, the current directory
will be used by default (see CHDIR statement). By default, the current
directory is "c:", which is the printer’s permanent memory. If the fi le is to
be be copied from or to another directory than the current one, the fi le name
must contain a directory reference.
A fi le cannot be copied to the same name in the same directory.
In addition to copying fi les to the printer’s permanent or temporary memory
or a DOS-formatted memory card, a fi le can also be copied to an output
device such as the printer’s display or a serial communication channel.
Copying a program to the standard OUT channel has the same effect as
LOADing and LISTing it.
Note that bitmap fonts and images are not fi les and therefore cannot
be copied.
Examples
In the following examples, "c:" is the current directory.
Copying a fi le from "card1:" to the current directory without changing
the fi le name:
COPY "card1:LABEL1.PRG"
Copying a fi le from "card1:" to the current directory and changing
the fi le name:
COPY "card1:FILELIST.PRG","COPYTEST.PRG"
Copying a fi le from "c:" to a directory other than the current one without
changing the fi le name:
COPY "c:FILELIST.PRG","card1:FILELIST.PRG"
Copying a fi le in the current directory to a new name within the same
directory:
COPY "LABEL1.PRG","LABEL2.PRG"
Copying a fi le in the current directory to serial channel "uart1:":
COPY "LABEL1.PRG","uart1:"