>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