I note that you are performing the rename inside a loop, I suspect you simply need to move it outside the loop.
If that's not it, it would really help to have more information: a short, self-contained, correct example (see SSCCE) would be a great start.
In reply to Re: File "rename" error in renaming a file.
by hv
in thread File "rename" error in renaming a file.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |