omron — Details

FCOPY monitor command FCOPY monitor command Syntax FCOPY new_file = old_file Function Copy the information in an existing disk file to a new disk file. Parameters new_file File specification for the new disk file to be created. If the period (".") and filename extension are omitted, the default is a blank extension. The current default device, unit, and directory path are considered as appropriate (see the DEFAULT command). old_file Specification of an existing disk file. If the period (".") and filename extension are omitted, the default is a blank extension. The current default device, unit, and directory path are considered as appropriate.

Details If the new file already exists, or the old file does not exist, an error is reported and no copying takes place. (You cannot overwrite an existing file-the existing file must first be deleted with an FDELETE command.) If the file to be copied has the special "read-only" attribute, the new file will also have that attribute. Files with the "protected" attribute cannot be copied. (See FDIRECTORY for a description of file protection attributes.) When a file is copied, the file creation date and time are preserved along with the standard file attributes. The only attribute that is affected is the "archived" bit, which is cleared to indicate that the file is not archived.

In general, a file specification consists of six elements: 1. An optional physical device (for example, DISK>) 2. An optional disk unit (for example, D:) 3. An optional directory path (for example, DEMO\) 4. A file name (for example, NEWFILE) 5. A period character (".") 6. A file extension (for example, V2) FCOPY can also be used to write a file to a serial line: eV+Operating System Reference Guide, 2.x,18321-000 Rev A Page 90