User`s guide

When a file is being created, information about the file size is not stored in the disk directory
until the file is closed. Closing a file also forces any partial sector buffers to be written to the
disk. Note that aborting a program does not force files associated with it to be closed. The files
are not closed (and the directory is not updated) until a KILL command is executed or until
the aborted program is executed again.
Disk Commands
There are several disk-oriented monitor commands that do not have a corresponding
program instruction. The FCMND instruction must be used to perform the following actions
from within a program:
l Rename a file
l Format a disk
l Create a subdirectory
l Delete a subdirectory
The MCS instruction can be used to issue an FCOPY command from within a program.
FCMND is similar to other disk I/O instructions in that a logical unit must be attached and the
success or failure of the command is returned via the IOSTAT real-valued function. For
details, see the documentation for the FCMND program instruction.
The FCMND instruction is described in detail in the V+ Language Reference Guide. See the
Adept MV Controller User's Guide
Accessing the Disk Directories
The V+ directory structure is identical to that used by the IBM PC DOS operating system
(version 2.0 and later). For each file, the directory structure contains the file name,
attributes, creation time and date, and file size. Directory entries may be read after
successfully executing an FOPEND instruction.
Each directory record returned by a READ instruction contains an ASCII string with the
information shown in the following table.
Byte Size Description
1-8 8 ASCII file name, padded with blanks on
right
9 1 ASCII period character (46 decimal)
10-12 3 ASCII file extension, padded with blanks
on right
Disk Directory Format
Advanced Disk Operations
(Undefined variable: Primary.Product_Name_V)Language User's Guide, version
17.x
Page 221