Your file names have spaces in them.  The DOS rename command sees
spaces and thinks you're sending it a *whole bunch* of arguments.  You
have to put double-quotes around your arguments when you drop the DOS
command in backticks.
 - - Martin
P.S. Please send ONLY PLAIN TEXT email to mailing lists.


________________________________

        From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gerald
Preston
        Sent: Tuesday, March 21, 2006 15:06
        To: 'Wagner, David --- Senior Programmer Analyst --- WGO';
[email protected]
        Subject: RE: renaming files in XP
        
        
         

                      my $old_name = "$file_path\\Track No$jc$mp";

                      my $new_name = "$file_path\\$_";

                      my $p = `rename $old_name $new_name`;


_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to