Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Copy a file and then verify it.
Message
From
19/12/1997 18:52:39
 
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00067207
Message ID:
00067333
Views:
23
>>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform