Shell Commands/Rename

From MorphOS Library

< Shell Commands

Rename - Renames files and directories


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.