Computing.Net > Forums > Disk Operating System > Renaming Multiple Files

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Renaming Multiple Files

Reply to Message Icon

Name: Psychedelicle
Date: May 31, 2003 at 07:19:32 Pacific
OS: XP
CPU/Ram: 1.8Ghz
Comment:

I want to rename multiple files in dos,
file01.00 -> file01.rar
file02.00 -> file02.rar...and so on

But write an exe program or script in notepade and run it in dos. i remember seeing 'echo' for every line that renamed the files, im unclear what the rest was.
Please help me out,
Thank You.



Sponsored Link
Ads by Google

Response Number 1
Name: Secret_Doom
Date: June 1, 2003 at 09:33:55 Pacific
Reply:

You can use a batch file (.bat).

The following batch file will rename all files with extention .00 in the current directory (the directory from where you invoke it) to extention .rar. If that's what you want, just cut-paste the following code to a text file, save it with a .bat extention and run it from the directory where the files are located (it would be neat to save the batch file on that directory already).

@echo off
for %%F in (*.00) do ren "%%F" "%%~nF.rar"

-- Leonardo Pignataro - Secret_Doom --

secret_doom@hotmail.com
www.batch.hpg.com.br

___________________________________________________________


0
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Renaming Multiple Files

Rename multiple Files www.computing.net/answers/dos/rename-multiple-files/14239.html

Renaming multiple files www.computing.net/answers/dos/renaming-multiple-files/15167.html

multiple renaming of file www.computing.net/answers/dos/multiple-renaming-of-file/16829.html