>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--