Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get file size
Message
De
25/07/2001 13:43:25
Patrick O'Neil
American Specialty Information Services
Roanoke, Indiana, États-Unis
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00535088
Message ID:
00535199
Vues:
18
>>Just curious, is there a way to get a file size without using ADIR()?
>>John
>
>Sure. The Size property of the Windows Script Host's Scripting.FileSystemObject.
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
>oFile = oFSO.GetFile(lcfile)
>? oFile.Size
Natively, there's also FSIZE(), but you have to SET COMPATIBLE to ON (by default, it's off).

george -

i assume you need to have WSH installed on the machine to to this ?
patrick
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform