>What is the function for deleting a directory?
If there are files in the directoy the function RD/RMDIR won't work. This includes sub-directories. What will work is the Windows Script Host's FileSystemObject.
oFSO = CREATEOBJECT('Scripting.FileSystemObject')
oFolder = oFSO.GetFolder(GETDIR())
? oFolder.Delete(.T.)
George
Ubi caritas et amor, deus ibi est