Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Removing A Directory
Message
 
 
To
23/01/2002 09:53:56
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00608966
Message ID:
00608983
Views:
26
>I am writing a program that needs to check for the existence of a particular directory. It then needs to delete everything underneath that direcotry (to include other folders) and the very last step is to delete the directory itself.

In VFP 7 (not tested)
lcDir = < ... >
SET SAFETY OFF
ERASE ( Adbs(lcDir) + "*.*")
RMDIR (lcDir)
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform