Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Improving performance
Message
De
29/08/2002 12:01:06
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
29/08/2002 11:23:56
Dave Nantais
Light speed database solutions
Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00694966
Message ID:
00694994
Vues:
9
>Upon exiting a program the following command is executed on certain directories and their subdirectories
>
>DELETE FILE THIS.NowDir + "\*.BAK"
>
>The command executes rather slowly...
>
>
>Would cycling through all file names
>USING
>=ADIR(laFiles, '*.BAK')
>
>and then issuing a delete file command on the exact file name
>something like this...
>
>FOR lni = 1 to x
> DELETE FILE laFiles[ lni , 1]
>ENDFOR
>
>would this speed things up a little ?

Have you tried :
erase ( THIS.NowDir + "\*.BAK" )
It might be faster.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform