• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Renaming Files

If copying files is the most common file-related function of DOS, renaming files probably follows close on its heels. The reasons for renaming a file are many. You might want to use the current filename for another file, or perhaps you want to create a name that better describes the contents of the current file. Whatever the reason, DOS enables you to rename a file using the internal command RENAME. Like some other DOS commands, RENAME also has a short form, REN. Which form you use depends on how you feel about typing three extra letters.

The DOS rename operation changes the name in a file's directory entry, but the file and its physical location on the disk remain unchanged. Because two files in the same directory cannot have the same name, DOS does not change a filename if the new filename already exists.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint