Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting a folder and all contents
Message
 
 
To
21/10/2010 11:19:40
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01486517
Message ID:
01486523
Views:
52
>>>Hi All.
>>>
>>>What is the best way to delete a folder, all it's sub-folders and all contents?
>>
>>
>>loFso = CreateObject("Scripting.FileSystemObject")
>>TRY
>>	loFolder = loFso.Getfolder(tcDirectory)
>>	loFolder.Delete()
>>	llOK = .T.
>>CATCH
>>	llOK = .F.
>>ENDTRY
>>
>
>
>Thanks again Sergey :)

You are welcome
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform