Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A better delete method
Message
De
24/07/2000 13:01:29
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00396201
Message ID:
00396227
Vues:
13
>Thanks all. I had read the help file for DELETE, but it seemed to only applly to Foxpro files
>I tried the ERASE lfilename, no go, but ERASE &lfilename worked musch faster.
>The files are firat scanned in with ADIR(), a buch of stuff checekd, added to a database then deleted from the floppy, then loop onto the next one

ERASE expects a name - you can use name expansion (enclose the variable in parentheses () to use name expansion) or use macro expansion, but macro expansion fails with file names that contain a space. It's also slower than name expansion, by a lot. Shelling to DOS to execute the deletion is even slower than macro expansion.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform