Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting a folder and all contents
Message
 
 
To
21/10/2010 10:52:39
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01486517
Message ID:
01486518
Views:
105
This message has been marked as the solution to the initial question of the thread.
>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
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform