Computer Hope

Other Pages

Home
Site map
Computer help

Dictionary
News
Q&A
What's new

Tools

E-mail this page
Print Preview
Edit this page




 

Microsoft DOS ren and rename

Quick links

About ren and rename
Availability
Syntax
Examples

About ren and rename

Used to rename files and directories from the original name to a new name.

In earlier releases of MS-DOS instead of using ren or rename you need to use the move command to rename your MS-DOS directories or files.

 

Availability

The ren and rename commands are internal commands that are available in the below Microsoft Operating Systems.

All Versions of MS-DOS
Windows 95
Windows 98
Windows ME
Windows NT
Windows 2000
Windows XP

 

Index

Category:
MS-DOS

Companies:
Microsoft

Related Pages:
Operating systems

 

Resolved

Were you able to locate the answer to your questions?

Syntax

Renames a file/directory or files/directories.

RENAME [drive:][path][directoryname1 | filename1] [directoryname2 | filename2]
REN [drive:][path][directoryname1 | filename1] [directoryname2 | filename2]

Note that you cannot specify a new drive or path for your destination.

Examples

rename c:\chope hope  

Rename the directory chope to hope. 

rename *.txt *.bak

Rename all text files to files with .bak extension.

rename * 1_*

Rename all files to begin with 1_. The asterisk (*) in this example is an example of a wild character; because nothing was placed before or after the first asterisk, this means all files in the current directory will be renamed with a 1_ in front of the file. For example, if there was a file named hope.txt it would be renamed to 1_pe.txt.

  • Additional examples about renaming files and directories in MS-DOS and other operating systems can also be found in document CH000846.

 

Home - Computer help - Contact - Dictionary - Links
Link to Computer Hope - Bookmark Computer Hope