Closes a file after backup mode
FileCClose() --> <lClosed>
<lClosed> : .T., when the the file that was opened with FileCopy() is successfully closed.
FILE COPY CLOSE
After you copy on multiple disks, this function should be routinely called. This is to prevent the source file, previously designed with FileCopy(), from remaining open. For example, this may occur if you terminate the copy procedure.
. Regardless of the share mode, all other users are not allowed access. This situation stays this way without needing a file handle.
Show a back up with FileCopy(). After terminating, close the source file: FileCopy(cSource, cTarget, .T.) // Back up mode DO NEXTDISK // When terminated Terminated = .T. DO WHILE FileCOpen() .AND. .NOT. Terminated FileCCont(cTarget) // Next disk, new name DO NEXTDISK // Request for disk exchange ENDDO IF Terminated FileCClose() // Close source file! ENDIF