XRPi Home

Documentation Index
Alphabetic Index

XRPi Documentation - PZTDOS Commands

REN

Command

REN -- Rename file(s).

Synopsis

REN [path/]<oldname> [path/]<newname>

Availability

REN is available within PZTDOS mode only. Non-sysops do not have access to it.

Description

Renames one or more file(s) from <oldname> to <newname>.

If the source path is not specified, the current working directory is assumed.

If the destination path is not specified, the renamed file(s) remain(s) in the source directory.

If you specify two different paths, this command will move the file to the new path.

The filenames may contain wildcards.

Examples

REN  FWD.SYS  FWD.OLD                ; Simple rename
REN  XRNODES backups/XRNODES         ; Move only 
REN  TMP\FRED.DOC  junk/jill.txt     ; Rename and move
REN  *.SAV *.19                      ; Bulk rename

Limitations

Pathnames may not contain spaces. This will be addressed in a later version.

Portability

This command follows normal DOS syntax.

Paths may contain both forward (/) and backward (\) slashes.

Unlike XR16/32, in XRPi this command does not support "drive letters", and pathnames are case-sensitive.

See also

DOS(2) -- Enter PZTDOS mode
MOVE(3) -- Move a file with optional rename.