Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting all files in a folder
Message
From
21/04/2016 02:29:57
 
 
To
20/04/2016 19:12:21
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01635106
Message ID:
01635124
Views:
71
Likes (1)
>Is there a way to delete all files in a folder? Preferably with the user not having to confirm deletion..
>
>Many thanks!
LOCAL lcFolder AS String

m.lcFolder = "you're erasing, so it's better to put a full path in here"

SET SAFETY OFF
ERASE (ADDBS(m.lcFolder) + "*.*")
----------------------------------
António Tavares Lopes
Previous
Reply
Map
View

Click here to load this message in the networking platform