Guest RonG Posted July 23, 2008 Posted July 23, 2008 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. -- Ron Perth Western Australia
Guest Big_Al Posted July 23, 2008 Posted July 23, 2008 Re: Macro to change mp3 file names RonG wrote: > 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.
Guest Pegasus \(MVP\) Posted July 23, 2008 Posted July 23, 2008 Re: Macro to change mp3 file names "RonG" <RonG@discussions.microsoft.com> wrote in message news:F37B6C77-B672-4A4E-9BFC-F83074FD6FD0@microsoft.com... > 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. > -- > Ron > Perth > Western Australia 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.
Guest Doum Posted July 23, 2008 Posted July 23, 2008 Re: Macro to change mp3 file names =?Utf-8?B?Um9uRw==?= <RonG@discussions.microsoft.com> écrivait news:F37B6C77-B672-4A4E-9BFC-F83074FD6FD0@microsoft.com: > 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
Guest Bill in Co. Posted July 23, 2008 Posted July 23, 2008 Re: Macro to change mp3 file names Doum wrote: > =?Utf-8?B?Um9uRw==?= <RonG@discussions.microsoft.com> écrivait > news:F37B6C77-B672-4A4E-9BFC-F83074FD6FD0@microsoft.com: > >> 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 I'm assuming it was autonamed that by the software. (No person in their right mind would name files that way).
Guest AlmostBob Posted July 23, 2008 Posted July 23, 2008 Re: Macro to change mp3 file names _ 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 _ "RonG" <RonG@discussions.microsoft.com> wrote in message news:F37B6C77-B672-4A4E-9BFC-F83074FD6FD0@microsoft.com... > 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. > -- > Ron > Perth > Western Australia
Guest Doum Posted July 24, 2008 Posted July 24, 2008 Re: Macro to change mp3 file names "AlmostBob" <anonymous1@microsoft.com> écrivait news:OT3U9ZQ7IHA.1428 @TK2MSFTNGP06.phx.gbl: > _ 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
Guest AlmostBob Posted July 24, 2008 Posted July 24, 2008 Re: Macro to change mp3 file names 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 _ "Doum" <me@domain.net> wrote in message news:XnF9AE521B21E679doumdomainnet@207.46.248.16... > "AlmostBob" <anonymous1@microsoft.com> écrivait news:OT3U9ZQ7IHA.1428 > @TK2MSFTNGP06.phx.gbl: > >> _ 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
Guest Pegasus \(MVP\) Posted July 24, 2008 Posted July 24, 2008 Re: Macro to change mp3 file names "AlmostBob" <anonymous1@microsoft.com> wrote in message news:upBjUMX7IHA.4652@TK2MSFTNGP05.phx.gbl... > 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
Guest HeyBub Posted July 24, 2008 Posted July 24, 2008 Re: Macro to change mp3 file names Doum wrote: > =?Utf-8?B?Um9uRw==?= <RonG@discussions.microsoft.com> écrivait > news:F37B6C77-B672-4A4E-9BFC-F83074FD6FD0@microsoft.com: > >> 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, He may have the essential information in an Excel spreadsheet referencing back to a serialized file: FileNum = Artist - Title - Venue - Date - Tattoo
Guest Gerald Ross Posted July 24, 2008 Posted July 24, 2008 Re: Macro to change mp3 file names RonG wrote: > 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.
Guest Doum Posted July 25, 2008 Posted July 25, 2008 Re: Macro to change mp3 file names "HeyBub" <heybub@gmail.com> écrivait news:OOsAIDc7IHA.2416@TK2MSFTNGP02.phx.gbl: > Doum wrote: >> =?Utf-8?B?Um9uRw==?= <RonG@discussions.microsoft.com> écrivait >> news:F37B6C77-B672-4A4E-9BFC-F83074FD6FD0@microsoft.com: >> >>> 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, > > 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
Guest Doum Posted July 25, 2008 Posted July 25, 2008 Re: Macro to change mp3 file names "Pegasus \(MVP\)" <I.can@fly.com.oz> écrivait news:OI1tH1Y7IHA.3648@TK2MSFTNGP03.phx.gbl: > > "AlmostBob" <anonymous1@microsoft.com> wrote in message > news:upBjUMX7IHA.4652@TK2MSFTNGP05.phx.gbl... >> 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 > > > I see, thanks. Doum
Recommended Posts