Home Page The Club Computers News Links Glossary EYAWTK
Before Amiga Background ICS OCS ECS AGA ??? PPC
U-Boot SLB Linux Amiga OS Dual Boot Motherboards Peripherals Other
Initialisation Installation OS4 Updates About OS4 File Systems Networking Printing Other
Introduction File System Workbench Preferences Commands Error Msgs Miscellaneous

AmigaOS 4.0 - About OS4 - Commands

RENAME AmigaDOS
Purpose: Changes the name of or moves a file or directory.
Format: RENAME [FROM] {<from name} [TO | AS] <to name>
Template: FROM/A/M, TO=AS/A, QUIET/S
Path: C:RENAME
RENAME renames the <from name> file or directory with the specified <to name> 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 name> argument, the <to name> argument must be a directory.

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

Example 1:

3.OS4:> RENAME Work/Ex1 AS :Test/Ex2 renames the file Ex1 as Ex2 and moves it from the Work directory to the Test directory. The Test directory must exist in the root directory for this command to work.

Example 2:

3.OS4:> RENAME 3.doc 5.doc a.doc TO Docs moves the 3.doc, 5.doc, and a.doc files to the Docs directory. The Docs directory must already exist.


Return to Commands Selection

Disclaimer: Amiga Auckland have prepared the above information for the use of its members based on our experiences and as such is subject to revision at any time. Amiga Auckland cannot guarantee any of the information and cannot be held accountable for any issues that may result from using it.


Copyright 2006 Amiga Auckland Inc. All rights reserved.
Revised: February 9, 2006.