>just fyi, i tried the dos command - deltree c:\jobname\tempsdir. it works without asking to empty the dir first.
I think that the reason that this is occurring is that VFP's RD probably maps to the same function that the DOS RD command does, rather than DELTREE. However, if you have access to the Windows Script Host, the Scripting.FileSystemObject can do the same thing as the DOS DELTREE command.
oFSO = CREATEOBJECT('Scripting.FileSystemObject')
oFolder = oFSO.GetFolder("c:\jobname\tempsdir")
oFolder.Delete
George
Ubi caritas et amor, deus ibi est