Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- Watcom Debugger Guide - Norton Guide http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]

     rename file_spec new_name
     ren file_spec new_name

This command may be used to rename a file in any directory on any disk on
the local or remote machine.  REN is a short form for RENAME.  The "@L" or
"@R" prefix may be used to specify the locale (local or remote).  Unlike the
DOS "RENAME" command, a file can be moved to a different directory if the
directory is specified in new_name.

Example:

     ren test.tmp test1.tmp

Rename the file "TEST.TMP" in the current directory of the current drive to
"TEST1.TMP".

Example:

     ren d:\etc\test.tmp test1.tmp

Rename the file "TEST.TMP" in the "ETC" directory of the "D" disk of the
current locale (local or remote) to "TEST1.TMP".

Example:

     ren @rc:\demo\test.tmp test1.tmp

Rename the file "TEST.TMP" in the "DEMO" directory of the "C" disk of the
remote machine to "TEST1.TMP".  Both locale and disk are specified.

Example:

     ren @le:trial.dat trial1.dat

Rename the file "TRIAL.DAT" in the current directory of the "E" disk of the
local machine to "TRIAL1.DAT".  Both locale and disk are specified.

Example:

     ren @le:trial.dat ..\trial1.dat

Rename the file "TRIAL.DAT" in the current directory of the "E" disk of the
local machine to "TRIAL1.DAT" and move it to the parent directory.  Both
locale and disk are specified.

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson