Re: Copy and rename files

2005-04-20 Thread Brian Milbrandt
I appreciate the help, is there a way to do it by taking the source and target directory's as command line arguments? that is how the unix script is written that I am trying to convert. Thanks. - Original Message - From: "Chris Charley" <[EMAIL PROTECTED]> To: Sent: Wednesday, April 20,

copy and change extension

2005-04-20 Thread Brian Milbrandt
I am trying to get a script to copy and change the extension for files with a non-zero file size. I have tried everything I can think of but I can't seem to get the copy files part right. All I get is the output 0 files copied. Here is the code if anyone can help. The print function in the

Re: Copy and rename files

2005-04-19 Thread Brian Milbrandt
The output is a filecount of zero and no files were copied. Brian - Original Message - From: "Wagner, David --- Senior Programmer Analyst --- WGO" <[EMAIL PROTECTED]> To: "Wagner, David --- Senior Programmer Analyst --- WGO" <[EMAIL PROTECTED]>; &qu

Copy and rename files

2005-04-19 Thread Brian Milbrandt
I am trying to convert a unix script to perl. The script takes 2 command line arguments, source and target. I am unable to get the file copy and rename function working properly. Here is what I have that is not working properly. $target is the target directory variable $source is the source d