It renames a file or files.
Command can be run using Microsoft Windows XP Command Prompt (cmd.exe)
To view 'ren or rename' command with its all possible parameters you can use following command. Its like help information to regarding that command.
Command can be run using Microsoft Windows XP Command Prompt (cmd.exe)
To view 'ren or rename' command with its all possible parameters you can use following command. Its like help information to regarding that command.
ren /?
or
rename /?
or
rename /?
Syntax :
REN [drive:][path]filename1 filename2
or
RENAME [drive:][path]filename1 filename2
Use 1:
ren c:\red.txt green.txt
- The above command renames red.txt file to green.txt which are located in C:\
[NOTE: You cannot specify a new drive or path for your destination file.]
ren c:\red.txt green.txt
- The above command renames red.txt file to green.txt which are located in C:\
[NOTE: You cannot specify a new drive or path for your destination file.]
Output 1:
Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. D:\DINESH > ren c:\red.txt green.txt
Use 2:
rename c:\green.txt red.txt
- The above command renames green.txt file to red.txt which are located in C:\
[NOTE: You cannot specify a new drive or path for your destination file.]
rename c:\green.txt red.txt
- The above command renames green.txt file to red.txt which are located in C:\
[NOTE: You cannot specify a new drive or path for your destination file.]
Output 2:
Microsoft Windows XP [Version 5.1.2600] (C) Copyright 1985-2001 Microsoft Corp. D:\DINESH > rename c:\green.txt red.txt
No comments:
Post a Comment