Programming instructions

Intermec Fingerprint v7.61 Programmers Reference Manual Ed. 752
Chapter 2 Program Instructions
COPY
Field of Application
Statement for copying les.
Syntax COPY<sexp
1
>[,<sexp
2
>]
<sexp
1
> is the name and optionally directory of the original le.
<sexp
2
> is, optionally, a new name and/or directory for the copy.
Remarks
This statement allows you to copy a le to another name and/or directory as an
alternative to LOADing the le in question and then SAVEing it.
If no directory is speci 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 printers permanent memory. If the le is to
be be copied from or to another directory than the current one, the le name
must contain a directory reference.
A le cannot be copied to the same name in the same directory.
In addition to copying les to the printers permanent or temporary memory
or a DOS-formatted memory card, a le can also be copied to an output
device such as the printers 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 les and therefore cannot
be copied.
Examples
In the following examples, "c:" is the current directory.
Copying a le from "card1:" to the current directory without changing
the le name:
COPY "card1:LABEL1.PRG"
Copying a le from "card1:" to the current directory and changing
the le name:
COPY "card1:FILELIST.PRG","COPYTEST.PRG"
Copying a le from "c:" to a directory other than the current one without
changing the le name:
COPY "c:FILELIST.PRG","card1:FILELIST.PRG"
Copying a le in the current directory to a new name within the same
directory:
COPY "LABEL1.PRG","LABEL2.PRG"
Copying a le in the current directory to serial channel "uart1:":
COPY "LABEL1.PRG","uart1:"