Batch Script - REN



Renames files and directories

Syntax

ren [oldfile/dirname] [newfile/dirname]

Renames the file name from the old file/dir name to the new one.

Example

@echo off 
ren C:\lists.txt C:\newlists.txt

Output

The file lists.txt will be renamed to newlists.txt.

batch_script_commands.htm
Advertisements