I added the error code like u suggested. It tells me that it can't find the directory. Which is bizarre, because just before I do the error code check, I have it print out the directory where it is going to and it has no problem showing me the correct path. However, when it comes time to delete it, it's a big NYET.

Jpols, I was doing a lot better before I tried to delete this simple little directory [Mad]

I am using Kix 4.12. I thought about the fact that in Kix 4.11 u couldn't delete a directory that wasn't empty, hence the empty directory test. I even had the shell command in, in the original script, but I coudln't get it to work. I used the shell command u added to the post and it still doesn't work. I use the error flag to see what is happenening and as I said before it doesn't seem to find the directory.

Thanks for all the help guys [Frown] but if u got anymore suggestions, I'm open for business. I'll keep trying to make it work, if I find a solution I'll let u know.

Z.