Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete a Directory
Message
 
To
27/02/2004 12:26:11
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00881549
Message ID:
00881596
Views:
29
>What is the function for deleting a directory?

If there are files in the directoy the function RD/RMDIR won't work. This includes sub-directories. What will work is the Windows Script Host's FileSystemObject.
oFSO = CREATEOBJECT('Scripting.FileSystemObject')
oFolder = oFSO.GetFolder(GETDIR())
? oFolder.Delete(.T.) && force deletion
George

Ubi caritas et amor, deus ibi est
Previous
Reply
Map
View

Click here to load this message in the networking platform