Copies a file.
COPY FILE <cfile> TO <cfile1>
<cFile> Filename of source file <cFile1> Filename of target file
This command makes an exact copy of <cFile> and names it <cFile1>. Both files must have the file extension included; the drive and the directory names must also be specified if they are different from the default drive and/or director. <cFile1> also can refer to a OS device (e.g. LPT1). This command does not observe the SET PATH TO or SET DEFAULT TO settings.
COPY FILE C:\harbour\tests\adirtest.prg TO C:\temp\adirtest.prg COPY FILE C:\harbour\utils\hbdoc\gennf.prg TO LPT1
ERASE, RENAME, FRENAME(), FERASE()