Computing.Net > Forums > Disk Operating System > rename 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.

rename multiple files

Reply to Message Icon

Name: ooOOJaVaOOoo
Date: September 27, 2003 at 13:44:36 Pacific
OS: Windows XP Pro
CPU/Ram: amd athlon xp 2000+ 768D
Comment:

I want to make a .bat file to rename all the mp3's in a folder.. IE: blah.mp3 to 0001.mp3 blah2.mp3 to 0002.mp3 through 6000
but all the mp3's have different names so it'd be like *.mp3 to 0001.mp3 0002.mp3 from that i guess?? im new :(



Sponsored Link
Ads by Google

Response Number 1
Name: DTech10
Date: October 1, 2003 at 06:20:54 Pacific
Reply:

Hi

You could try this, it needs both batch files.

==========================================
rem 1st Batch File
Rem Number.bat
@echo off
set no=-1
for %%x in (*.mp3) do call ReName.bat %%x
set no=
=========================================


=========================================
rem 2nd Batch File
rem ReName.bat
@echo off
set /a no+=1
if %no% LSS 1000 set FName=0
if %no% LSS 100 set FName=00
if %no% LSS 10 set FName=000
ren %1 %FName%%no%.mp3
========================================


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: rename 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/13297.html

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