Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Copy a file and then verify it.
Message
De
19/12/1997 18:52:39
 
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Divers
Thread ID:
00067207
Message ID:
00067333
Vues:
27
>>>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
Fil
Voir

Click here to load this message in the networking platform