>>>Does anyone know if a file can be copied, say to a floppy disk, and then verified from with FoxPro? Would like to avoid shelling to DOS.
>>>
>>>Thanks
>>>Kathy VanAlstyne
>>
>>You can do an ADIR() on the original file and on the copied file to compare the filesize, etc. Are you using COPY FILE or COPY TO to copy a table. Date/Time stamps probably will not be the same with COPY TO for a table. For tables, you could also count the number of records. Be leary of Reccount() based on status of SET DELETED. COPY TO with SET DELETED ON will not copy deleted records, so RECCOUNT() could be different.
>
>Thank you for the reply. This is just a COPY FILE command and using the ADIR() might be the solution. Did not think of it.
>Thanks again.
You can also use the FILE() function if you need to verify only that the file exists after the copy command.
Vlad
Précédent
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement