Macro to change mp3 file names

R

RonG

I'm running Windows XP Home. On one of my hard drives I have accumulated
10,000+ mps files which I have named (numbered) 0001 to 9999. I want to
change all the files by adding a 0 before the existing name (i.e. 00001 to
09999). Can a macro be written to simplify this task, or do I have to
tediously alter each file individually? Any help or tips gladly appreciated.
 
B

Big_Al

RonG said:
I'm running Windows XP Home. On one of my hard drives I have accumulated
10,000+ mps files which I have named (numbered) 0001 to 9999. I want to
change all the files by adding a 0 before the existing name (i.e. 00001 to
09999). Can a macro be written to simplify this task, or do I have to
tediously alter each file individually? Any help or tips gladly appreciated.

Get Bulk Rename Utility.
You can find it with google very easy.
It will do all sorts of renaming tasks.
 
P

Pegasus \(MVP\)

RonG said:
I'm running Windows XP Home. On one of my hard drives I have accumulated
10,000+ mps files which I have named (numbered) 0001 to 9999. I want to
change all the files by adding a 0 before the existing name (i.e. 00001 to
09999). Can a macro be written to simplify this task, or do I have to
tediously alter each file individually? Any help or tips gladly
appreciated.

Renaming them might be counter-productive: Having substantially
more than 10,000 files in the one folder tends to slow down
access to that folder. Why not create a folder called "00" and
move all of your files into it? Later on you create "01" and "02",
which would extend the naming scope to 1 Million files without
speed penalty.
 
D

Doum

I'm running Windows XP Home. On one of my hard drives I have
accumulated 10,000+ mps files which I have named (numbered) 0001 to
9999. I want to change all the files by adding a 0 before the existing
name (i.e. 00001 to 09999). Can a macro be written to simplify this
task, or do I have to tediously alter each file individually? Any help
or tips gladly appreciated.

Just curious

Why do you name MP3 files that way, how do you know which file is which
song?

The usual way I saw MP3 naming is "Artist - Title.mp3", but it's not a
law.

Again, just curious,

Doum
 
B

Bill in Co.

Doum said:
Just curious

Why do you name MP3 files that way, how do you know which file is which
song?

The usual way I saw MP3 naming is "Artist - Title.mp3", but it's not a
law.

Again, just curious,

Doum

I'm assuming it was autonamed that by the software. (No person in their
right mind would name files that way).
 
A

AlmostBob

_ represent spaces for clarity

In a cmd window
for _ %f _ in _ (*.*) _ do _ ren _ %f _ 0%f

in a batch file
for _ %%f _ in _ (*.*) _ do _ ren _ %%f _ 0%%f

--
Adaware http://www.lavasoft.de
spybot http://www.safer-networking.org
AVG free antivirus http://www.grisoft.com
Etrust/Vet/CA.online Antivirus scan
http://www3.ca.com/securityadvisor/virusinfo/scan.aspx
Panda online AntiVirus scan http://www.pandasoftware.com/ActiveScan/
Catalog of removal tools (1)
http://www.pandasoftware.com/download/utilities/
Catalog of removal tools (2)
http://www3.ca.com/securityadvisor/newsinfo/collateral.aspx?CID=40387
Blocking Unwanted Parasites with a Hosts file
http://mvps.org/winhelp2002/hosts.htm
links provided as a courtesy, read all instructions on the pages before use

Grateful thanks to the authors and webmasters
_
 
D

Doum

_ represent spaces for clarity

In a cmd window
for _ %f _ in _ (*.*) _ do _ ren _ %f _ 0%f

in a batch file
for _ %%f _ in _ (*.*) _ do _ ren _ %%f _ 0%%f


Ee...

Why do you have to double "%" in a batch file???

TIA
Doum
 
A

AlmostBob

batch files strip the first % sign in an parsing commands to process
replaceable parameters, batch files can be called by
batchfilename parameter1 parameter2 parameter3 parameter4 parameter5 .......
p1 etc are referenced inside the file as %1 %2 %3 by the position in the
parameter list, the batch file processing attempts to locate parameters for
% signs, strips them if not found and passes the stripped characters on %%f
leaves %f after initial processing.


--
Adaware http://www.lavasoft.de
spybot http://www.safer-networking.org
AVG free antivirus http://www.grisoft.com
Etrust/Vet/CA.online Antivirus scan
http://www3.ca.com/securityadvisor/virusinfo/scan.aspx
Panda online AntiVirus scan http://www.pandasoftware.com/ActiveScan/
Catalog of removal tools (1)
http://www.pandasoftware.com/download/utilities/
Catalog of removal tools (2)
http://www3.ca.com/securityadvisor/newsinfo/collateral.aspx?CID=40387
Blocking Unwanted Parasites with a Hosts file
http://mvps.org/winhelp2002/hosts.htm
links provided as a courtesy, read all instructions on the pages before use

Grateful thanks to the authors and webmasters
_
 
P

Pegasus \(MVP\)

AlmostBob said:
batch files strip the first % sign in an parsing commands to process
replaceable parameters, batch files can be called by
batchfilename parameter1 parameter2 parameter3 parameter4 parameter5
.......
p1 etc are referenced inside the file as %1 %2 %3 by the position in the
parameter list, the batch file processing attempts to locate parameters
for % signs, strips them if not found and passes the stripped characters
on %%f leaves %f after initial processing.

.. . . or, in simple words:
- Index variables start with a single % at the Command Prompt.
Example: for /L %a in (1,1,10) do @echo %a
- Index variables start with a double % inside a batch file.
Example:
@echo off
for /L %%a in (1,1,10) do echo %%a
 
H

HeyBub

Doum said:
Just curious

Why do you name MP3 files that way, how do you know which file is
which song?

The usual way I saw MP3 naming is "Artist - Title.mp3", but it's not a
law.

Again, just curious,

He may have the essential information in an Excel spreadsheet referencing
back to a serialized file:

FileNum = Artist - Title - Venue - Date - Tattoo
 
G

Gerald Ross

RonG said:
I'm running Windows XP Home. On one of my hard drives I have accumulated
10,000+ mps files which I have named (numbered) 0001 to 9999. I want to
change all the files by adding a 0 before the existing name (i.e. 00001 to
09999). Can a macro be written to simplify this task, or do I have to
tediously alter each file individually? Any help or tips gladly appreciated.

I use CK Rename for this. It works great.

--
Gerald Ross
Cochran, GA

A day without radiation is a day
without sunshine.
 
D

Doum

He may have the essential information in an Excel spreadsheet
referencing back to a serialized file:

FileNum = Artist - Title - Venue - Date - Tattoo

That's what I thought but IMO it's a more complicated approach to always
have to refer to a database.

When they are named "Artist - Title", you can search a song directly in
Windows Explorer.

Thanks
Doum
 
D

Doum

. . . or, in simple words:
- Index variables start with a single % at the Command Prompt.
Example: for /L %a in (1,1,10) do @echo %a
- Index variables start with a double % inside a batch file.
Example:
@echo off
for /L %%a in (1,1,10) do echo %%a

I see, thanks.

Doum
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top