Copy file

From CometWiki

Revision as of 11:40, 13 June 2009 by Badge (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

DOS pseudo functions: Copy a file

Syntax:

 DOSMS(AX-value, BX-value, CX-value, DX-value) EXCP=statement-label  

Entry:

 AX = "@FFFA@"
 BX =    0 (copy from the beginning of the file), or
         1 (copy from the current location in the file)
 CX = the source file handle
 DX = the target file handle


Discussion:
This pseudo function copies a file via DOS, providing a quick copy.
The copying can start at the beginning of the source file or from the current location in the file.
The source file can be copied, merged, or appended to the target file.

Personal tools