Home   MS-DOS Home   A-Z   NS Utilities   Command Syntax

REN

Home >> MS-DOS Reference >> Command Categories >> File and Disk Management >> REN

File and Disk Management

File and Disk Management


Summary
Description
Command Syntax
Comments
Supported DOS versions: All versions
How easy to use? Very easy
How safe to use? Fairly safe
How common? Very common
Internal or external command? Internal

Description

Renames a file or group of files

Command Syntax

REN filename1 filename2

or

RENAME filename1 filename2

Comments

A single file can be renamed thus: REN FILE1.TXT FILE2.TXT
or REN FILE1.TXT *.BAK
A group of files can be renamed thus: REN *.BAT *.BAK
or REN A*.BAT *.BAK
The following examples are not allowed:
REN C:\TEMP\FILE1.TXT C:\NEW\FILE2.TXT
REN *.EXE *.*

It is also not possible to rename a directory; use XCOPY and RD instead

Home Home
MS-DOS MS-DOS Home
A - Z Index A - Z Index

Top of page
Summary
Description
Command Syntax
Comments




Top of page    Home    MS-DOS Home    NS Utilities
Copyright © 2005 Marcus Houlden  |  Copyright and Data Protection

Printed from the NukeSoft MS-DOS Reference. Copyright © 1995 - 2006 Marcus Houlden