Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting a folder and all contents
Message
From
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:
01486521
Views:
59
>>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 :)
In the End, we will remember not the words of our enemies, but the silence of our friends - Martin Luther King, Jr.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform