in reply to renaming a file and moving into another folder
Have you looked at using the Windows command "Move" or File::Copy? These might solve your problem. (I'm at work on a Linux box and can't try them out right now.)
In Section
Seekers of Perl Wisdom