Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How can I check File Size?
Message
De
13/05/2003 11:53:51
Jonathan Cochran
Alion Science and Technology
Maryland, États-Unis
 
 
À
13/05/2003 11:39:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00787763
Message ID:
00787770
Vues:
26
You can also use the ADIR() function. One of the columns in the array that it creates stores the file size.

>I am writing an application that creates QuickBooks Imports files for multiple companies on a daily basis. I want to eliminate the need for the user to manage these files. (Visual AccountMate has a 'Delete Import File' feature which is nice). I want to do this like this...
>
>copy file \source\filename.iif to \destination\filename.iif
>
>* verify that the file is copied in full by comparing the file size of the original and copied files
>
>if filesize_is_the_same
> erase \source\filename.iif
>endif
>
>I can't find a function that returns the filesize of a specified file. Is there on that I'm not seeing, or do I need to find another way to do this.
>
>Thanks for any suggestions,
>Larry Morelli
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform