http://www.aros.org AROS-Exec AROS-Exec Archives Power2People
kitty mascottop logo menu

Rename

Index Prev Next


Name

Rename

Synopsis

Rename [{FROM}] <name> [TO|AS] <name> [QUIET]

FROM/A/M,TO=AS/A,QUIET/S

Function

Renames a directory or file. Rename can also act like the UNIX mv
command, which moves a file or files to another location on disk.

Inputs

FROM   --  The name(s) of the file(s) to rename or move. There may
           be many files specified, this is used when moving files
           into a new directory.

TO|AS  --  The name which we wish to call the file.

QUIET  --  Suppress any output from the command.

Result

Standard DOS error codes.

Example

Rename letter1.doc letter2.doc letters

    Moves letter1.doc and letter2.doc to the directory letters.

Rename ram:a ram:b quiet
Rename from ram:a to ram:b quiet
Rename from=ram:a to=ram:b quiet

    All versions, renames file "a" to "b" and does not output any
    diagnostic information.

Copyright © 1995-2024, L'équipe de développement AROS. Tous droits réservés.
Amiga®, AmigaOS®, Workbench et Intuition sont des marques de Amiga Inc. Les autres marques appartiennent à leur propritaires respectifs.