Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A better delete method
Message
From
24/07/2000 12:52:30
 
 
To
24/07/2000 12:35:08
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00396201
Message ID:
00396221
Views:
13
>I have a function that needs to delete each file it processes
>At present I am using
>! del &lfilename
> It opens a dos prompt for each file
>As this will process up to several hunderd files per day, I'd like to get rid of that and have the deletion invisable to the user.
>Any Ideas?

Use the native ERASE command, which will accept wildcards:

lFileName = 'foo*.txt'
ERASE (lFileName)
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
Next
Reply
Map
View

Click here to load this message in the networking platform