in reply to Unlink doesn't work on first file

My first thought was that you don't have permission to delete the file, but maybe you should post some code for us to see.

SpaceAce