Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A better delete method
Message
From
24/07/2000 13:01:29
 
 
To
24/07/2000 12:57:38
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00396201
Message ID:
00396227
Views:
12
>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
Previous
Reply
Map
View

Click here to load this message in the networking platform