Shell Commands/Rename

From MorphOS Library

Revision as of 13:51, 3 March 2015 by JPV (talk | contribs) (Created page with "'''Rename''' - Renames files and directories FROM/A/M, TO=AS/A, QUIET/S <nowiki> FROM - Name of the files/directories to rename TO - Dest...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

< Shell Commands

Rename - Renames files and directories

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

FROM  - Name of the files/directories to rename                                
TO    - Destination name of file/directory
QUIET - Be quiet

Rename renames the FROM file or directory with the specified TO name. The FROM and TO files or directories must be on the same volume. If the name refers to a directory, Rename changes the directory name without changing the names of the files or subdirectories in that directory. When there are multiple items in the FROM argument, the TO argument must be a directory.

NOTE: If you rename a directory or if you use Rename to give a file another directory name, MorphOS changes the position of that directory or file in the filing system hierarchy. This effectively moves the items.