{
  "id": "enwiki-001378833505",
  "slug": "ren-command",
  "title": "Ren (command)",
  "qid": "",
  "lead": "ren (or rename ) is a shell command for renaming a file and in some implementations (such as AmigaDOS ) a directory. Some shells with also provide a move command that provides for moving between directories. On systems that do not support a move command (such as MS-DOS older than 6.00), the user could copy a file to a new destination and then delete the original file. In DOSBox, ren can move files. displayed on a VT100. The command is in various shells such as COMMAND.COM, Command Prompt, 4DOS, 4NT and PowerShell. In MS-DOS, the command is available in versions 1 and later. In PowerShell, ren is a predefined alias for the Rename-Item Cmdlet which serves the same essential purpose. Similar commands are available in many operating systems. The command is available in the CP/M, MP/M, Cromemco DOS, TRIPOS, OS/2, ReactOS, SymbOS, and DexOS. Multics includes a rename command to rename a directory entry, which could be contracted to rn . A command which in some cases can be contracted to ren is provided in Stratus VOS, RT-11, OS/8, RSX-11, ISIS-II, iRMX 86, TOPS-20, Z80-RIO, FLEX, OS-9, FlexOS, 4690 OS, MPE/iX, THEOS/OASIS, and OpenVMS A rename command is supported by 86-DOS. DR DOS 6.0 includes and commands. PC-MOS includes an implementation of rename . It is also available in the MS-DOS emulator DOSBox.",
  "body": "ren (or rename ) is a shell command for renaming a file and in some implementations (such as AmigaDOS ) a directory. Some shells with also provide a move command that provides for moving between directories. On systems that do not support a move command (such as MS-DOS older than 6.00), the user could copy a file to a new destination and then delete the original file. In DOSBox, ren can move files. displayed on a VT100.]] The command is in various shells such as COMMAND.COM, Command Prompt, 4DOS, 4NT and PowerShell. In MS-DOS, the command is available in versions 1 and later. In PowerShell, ren is a predefined alias for the Rename-Item Cmdlet which serves the same essential purpose. Similar commands are available in many operating systems. The command is available in the CP/M, MP/M, Cromemco DOS, TRIPOS, OS/2, ReactOS, SymbOS, and DexOS. Multics includes a rename command to rename a directory entry, which could be contracted to rn . A command which in some cases can be contracted to ren is provided in Stratus VOS, RT-11, OS/8, RSX-11, ISIS-II, iRMX 86, TOPS-20, Z80-RIO, FLEX, OS-9, FlexOS, 4690 OS, MPE/iX, THEOS/OASIS, and OpenVMS A rename command is supported by 86-DOS. DR DOS 6.0 includes and commands. PC-MOS includes an implementation of rename . It is also available in the MS-DOS emulator DOSBox. ==Example== The following renames file to . > ren foo bar The following renames a file specified by a fully qualified path. The first parameter may contain drive and path information, but the second parameter must be only a file name. > rename \"C:\\Users\\Public\\Videos\\Sample Videos\\Wildlife.wmv\" Wildlife2.wmv The following removes abcd of a file name in Command Prompt based on the following rules: Same number of / as the number of characters to remove Requries double quotes for both arguments Won't remove . from a file name > rename \"abcd*.txt\" \"////*.txt\" ==See also== List of DOS commands List of PowerShell commands ==References== ==Further reading== ==External links== ren | Microsoft Docs",
  "categories": [
    "109369725",
    "109369726",
    "109369727",
    "20363044",
    "21493616",
    "22911577",
    "23118434",
    "23603337",
    "25302857",
    "25569938",
    "37645845",
    "58484671",
    "63265896"
  ],
  "license": "CC BY-SA 4.0",
  "source_uri": "https://en.wikipedia.org/w/index.php?oldid=1378833505",
  "content_hash": "",
  "created_at": null,
  "updated_at": 1791277297.0,
  "claims": [],
  "contradictions": [],
  "confidence": 0.6,
  "csl": {
    "id": "enwiki-001378833505",
    "type": "webpage",
    "title": "Ren (command)",
    "author": [
      {
        "family": "Anticloud FZ LLE",
        "literal": "Anticloud FZ LLE"
      }
    ],
    "container-title": "encyclopegia.org",
    "publisher": "Anticloud FZ LLE",
    "publisher-place": "Dubai, United Arab Emirates",
    "URL": "https://encyclopegia.org/a/ren-command",
    "issued": {
      "date-parts": [
        [
          2026,
          11,
          19
        ]
      ]
    },
    "accessed": {
      "date-parts": [
        [
          2026,
          11,
          19
        ]
      ]
    },
    "license": "CC BY-SA 4.0",
    "DOI": "eo1:enwiki-001378833505",
    "isBasedOn": "https://en.wikipedia.org/w/index.php?oldid=1378833505",
    "note": "Immutable snapshot enwiki-001378833505"
  }
}