Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting a Directory and all sub-directory...
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00795177
Message ID:
00795179
Views:
32
>I need to delete directories and all sub-directories.
>
>On the Old DOS we had a commande "DelTree" that do just that.
>
>Any one know a quick we to do just that in VFP?

How about the Scripting.FileSystemObject?
oFSO = CREATEOBJECT('Scripting.FileSystemObject')
lcdir = GETDIR()
oFolder = oFSO.GetFolder(lcdir)
oFolder.Delete(.T.)
George

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

Click here to load this message in the networking platform