in reply to Re^2: Subroutine to delete one file and copy one file to another
in thread Subroutine to delete one file and copy one file to another

Without trying the whole of your main program, it looks like the other monks have the delete subroutine correct--so the main program I think is the problem. Speaking for myself, I would start by cleaning up that ugly code and rename some varables variables to help make it clear what I am tring trying to do. Some good comments would help, too.

  • Comment on Re^3: Subroutine to delete one file and copy one file to another