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:
00795187
Views:
38
Hi George,
What is the deference between:
oFso = CreateObject("Scripting.FileSystemObject")
lcFolder = < ... > 
oFso.DeleteFolder(lcFolder)
and
lcdir = GETDIR()
oFolder = oFSO.GetFolder(lcdir)
oFolder.Delete(.T.)
>>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.)
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform