It was Friday, October 24, 2003 when Chinku Simon took the soap box, saying:
: Hi,
: 
: Is there any inbuilt command by which we can rename a file (in WinNT)

Hi there.  I'd give the rename() function a shot.  :-)

perldoc -f rename

       rename OLDNAME,NEWNAME
               Changes the name of a file; an existing file NEWNAME will
               be clobbered. Returns true for success, false otherwise.

               Behavior of this function varies wildly depending on your
               sys- tem implementation. For example, it will usually not
               work across file system boundaries, even though the
               system mv com- mand sometimes compensates for this. Other
               restrictions include whether it works on directories,
               open files, or pre- existing files. Check perlport and
               either the rename(2) man- page or equivalent system
               documentation for details.


  Casey West

-- 
Good Idea: Visiting picturesque McLean, Virginia.
Bad Idea:  Visiting picturesque McLean Stevenson. 


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to