Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting a directory and all its contents
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00907110
Message ID:
00907440
Views:
11
>Hi, George
>
>This is exactly what i want to do at the moment. The difference is, on a multi-purpose dialog, I've already got the folder name ( the user may want to look in it, assign it as his default dir or, indeed, delete it and all its sub-folders and files).
>
>Your little snippet works fine but could you please tell me how it can be adapted to delete an already-known folder? I can't find anything on Intellisense that would do and i don't know the syntax of the properties anyway.
>
>'ppreciate it
>
Terry,

If you already know the fully qualified path name, it's as simple as replacing the GETDIR() reference with that.

Or am I mis-understanding what you're saying here?


>
>>The Windows Script Host
oFSO = CREATEOBJECT("Scripting.FileSystemObject")
>>oFolder = oFSO.GetFolder(GETDIR())
>>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