Re: Copying files in windows from one directory to the other

2006-07-12 Thread John W. Krahn
kilaru rajeev wrote: > Hi, Hello, > I got some files in $BNY_DOWNLOAD which is a directory in windows. Now i > have to identify most recent one in that file and > have to move it $BNY_DATA directory it is also a directory. To identify the > most recent file I used sort command and sorted it > by

RE: Copying files in windows from one directory to the other

2006-07-12 Thread Timothy Johnson
Message- From: kilaru rajeev [mailto:[EMAIL PROTECTED] Sent: Wednesday, July 12, 2006 10:44 AM To: beginners@perl.org Subject: Copying files in windows from one directory to the other Hi, I got some files in $BNY_DOWNLOAD which is a directory in windows. Now i have to identify most recent one in

Re: Copying files in windows from one directory to the other

2006-07-12 Thread Tom Phoenix
On 7/12/06, kilaru rajeev <[EMAIL PROTECTED]> wrote: Now I want to move this file from this $BNY_DOWNLOAD to $BNY_DATA directory. You may be able to simply use rename() to do what you want, but it sounds as if you might want to use the File::Copy module, and its move() function. Hope this help

Copying files in windows from one directory to the other

2006-07-12 Thread kilaru rajeev
Hi, I got some files in $BNY_DOWNLOAD which is a directory in windows. Now i have to identify most recent one in that file and have to move it $BNY_DATA directory it is also a directory. To identify the most recent file I used sort command and sorted it by using -M and and space ship operators.