in reply to Process cannot Access file

On your "Windoze" machine open files normally can't be deleted or moved. Something you are doing in the loop that you havent posted is keeping a filehandle open prior to the move. Possibly/probably because you are using a global filehandle that isnt being closed as you exit scope. (This is no biggie, even someone like Schwern has fallen prey to this.)

---
demerphq