>File access is denined when I remove c:\temp because I have a sub dir. any other ideas?
You should delete firstly all files ERASE c:\tmp\*.* and also delete all subfolders. The latter deletion can be done by collecting folder names into array ADIR(...,'D') and then applying RMDIR to each subfolder name.
Edward Pikman
Independent Consultant