Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete a directory and all its files
Message
From
06/11/2004 23:05:20
 
 
To
06/11/2004 14:03:56
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivia
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6
OS:
Windows '98
Database:
Visual FoxPro
Miscellaneous
Thread ID:
00958848
Message ID:
00958951
Views:
18
>>Hi
>>
>>Is there a command to delete a Directory also if it is not empty?
>>
>>Tank you in advance for the help.
>>Luigi
>
>Another option is to use the DOS command, DELTREE.

DELTREE is not available in all DOS versions (at least my copy of XP doesn't recognize it). A DOS solution which is probably more universal is
lcDir = "Directory Name"
RUN RD &lcDir /S /Q
There may be problems with long directory name and/or those with spaces, but it should be a good substitute for DELTREE.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform