Mass renaming

  • Thread starter Thread starter Kieron Capehorn
  • Start date Start date
K

Kieron Capehorn

Guest
Is there a method of renaming all the files in a folder systematically? I
have a folder full of files that begin with numbers. I want to add a 0 to
the beginning of each filename (i.e. 1.xls will become 01.xls). I have
tried putting the command 'rename *.* 0*.*' into command, but that replaced
the first letter of each filename with a 0, rather than adding a 0.

This there an easy way to do this?

Thanks.
 
Re: Mass renaming

On 7/5/2007 3:08 PM On a whim, Kieron Capehorn pounded out on the keyboard

> Is there a method of renaming all the files in a folder systematically? I
> have a folder full of files that begin with numbers. I want to add a 0 to
> the beginning of each filename (i.e. 1.xls will become 01.xls). I have
> tried putting the command 'rename *.* 0*.*' into command, but that replaced
> the first letter of each filename with a 0, rather than adding a 0.
>
> This there an easy way to do this?
>
> Thanks.
>
>


Hi Kieron,

Try this free utility:
http://3d2f.com/programs/60-253-file-renamer-2005-download.shtml

--
Terry R.

***Reply Note***
Anti-spam measures are included in my email address.
Delete NOSPAM from the email address after clicking Reply.
 
Re: Mass renaming

On Thu, 05 Jul 2007 22:08:20 GMT, "Kieron Capehorn"
<kcapehornR.E,M-O'V`E@blueyonder.co.uk> wrote:

>Is there a method of renaming all the files in a folder systematically? I
>have a folder full of files that begin with numbers. I want to add a 0 to
>the beginning of each filename (i.e. 1.xls will become 01.xls). I have
>tried putting the command 'rename *.* 0*.*' into command, but that replaced
>the first letter of each filename with a 0, rather than adding a 0.
>
>This there an easy way to do this?


Yes, there's an extremely easy way do this; using, of all things, a
free image viewer program called Irfanview. It takes a bit of
experimenting to get used to it, but that's true of any program. Once
you have Irfanview (http://irfanview.com)open, go to File / Batch
Rename. Use the help files to help you get started. BACKUP YOUR
ORIGINAL FILES first. In getting used to using this program, I have
overwritten many file names with the wrong stuff. :) I've used it
enough now, that I don't make that mistake any longer. ::knock on
wood::

--
Zilbandy
 
Re: Mass renaming


"Kieron Capehorn" <kcapehornR.E,M-O'V`E@blueyonder.co.uk> wrote in message news:oZdji.129112$hj5.91785@fe2.news.blueyonder.co.uk...
> Is there a method of renaming all the files in a folder systematically? I
> have a folder full of files that begin with numbers. I want to add a 0 to
> the beginning of each filename (i.e. 1.xls will become 01.xls). I have
> tried putting the command 'rename *.* 0*.*' into command, but that replaced
> the first letter of each filename with a 0, rather than adding a 0.
>
> This there an easy way to do this?
>
> Thanks.
>


Kieron:

Good timing: my neice asked me last week.
I sent this to her / other family on Saturday:
if you find it useful, feel free to send it along to others.
I use it a lot after trips.

" When returning from a party, trip , rather than importing your camera files to your PC and having them being named DSC0007 , DSC0008 etc, how about calling them WDW2006, WDW2006-1 , ... something that TELLS you what they are so you can tell at a glance next time AND without doing all of the typing. To keep them organized and avoid typing cramp, Windows has an easy way for the renaming these files as long as they are all the same type of file ( JPG or AVI etc )


[NOTE *** If you have a lot of files that are NOT in order this isn't that helpful to you. You want to be sure that they are now listed in order when you open the folder since this will rename everything between the first and last file you pick. And be sure they are the same type ( all end in " .jpg " or all end in " . avi " etc). If mingled types, click on the " File Type" column to sort by type first and then pick the first/last of each type ]

Here we go - to rename multiple files :

First you'd have to browse to know how you'd like to group / rename them ( that DSC0022.jpg thru DSC0197.jpg are really your WDW2006 trip for instance ), then:

1. Open Windows Explorer and navigate to the folder/files you wish to rename
2. Select the last file you wish to be renamed - left click on it
(DSC0197.jpg in my example )
3. Hold down the shift key and left click on the first file you wish to be renamed
(DSC0022.jpg)
Those files will now be highlighted
4. Press F2
The first file's name will be highlighted in blue and the others greyed out.
Note what comes after the period in the name - is it .jpg or .bmp or ..avi etc ?
5. Type in the new name you wish to use for the files WDW2006.jpg
YES retype the " .jpg " ( or whatever it was) or you'll change the type of file
6. Press Enter.

All the files will now be renamed and apart from the first one will have a number in parenthesis following it. like WDW2006 (122).jpg
Next time you'll easily see that all of those files are related to WDW trip, rather than some useless name that you have to open to check. "

Bobb
 
Re: Mass renaming

Kieron Capehorn wrote:
>
> Is there a method of renaming all the files in a folder systematically? I
> have a folder full of files that begin with numbers. I want to add a 0 to
> the beginning of each filename (i.e. 1.xls will become 01.xls). I have
> tried putting the command 'rename *.* 0*.*' into command, but that replaced
> the first letter of each filename with a 0, rather than adding a 0.


Bulk renaming of files:

http://www.bootdisk.com/utility.htm
BULK FILE RENAMERS
 
Re: Mass renaming

here's a small command-line java program i wrote that you can just
download and run (no need to "install"):

http://renamewand.sourceforge.net/

Suppose the files are called "xxx.xls" and you want to rename them to
"0xxx.xls", i.e. padding the number xxx to 4 digits.

just execute:
RenameWand.bat "<@a>.xls" "<4|a>.xls"

hope that helps
 
Re: Mass renaming

Thanks, worked like a dream


"Plato" <|@|.|> wrote in message
news:468dae44$0$289$bb4e3ad8@newscene.com...
> Kieron Capehorn wrote:
>>
>> Is there a method of renaming all the files in a folder systematically?
>> I
>> have a folder full of files that begin with numbers. I want to add a 0
>> to
>> the beginning of each filename (i.e. 1.xls will become 01.xls). I have
>> tried putting the command 'rename *.* 0*.*' into command, but that
>> replaced
>> the first letter of each filename with a 0, rather than adding a 0.

>
> Bulk renaming of files:
>
> http://www.bootdisk.com/utility.htm
> BULK FILE RENAMERS
>
>
 
Re: Mass renaming

[Kieron Capehorn] wrote-:
> Is there a method of renaming all the files in a folder systematically? I
> have a folder full of files that begin with numbers. I want to add a 0 to
> the beginning of each filename (i.e. 1.xls will become 01.xls). I have
> tried putting the command 'rename *.* 0*.*' into command, but that replaced
> the first letter of each filename with a 0, rather than adding a 0.
>
> This there an easy way to do this?
>
> Thanks.
>
>


Open Command Prompt and run:
CD "FOLDER PATH"
for /f %f in ('dir /b') do @ren "%f" "0%f"


Good Luck,
Ayush.
--
XP-Tips [Schedule a weekly defragmentation] :
http://www.microsoft.com/windowsxp/using/setup/tips/defrag.mspx
 
Re: Mass renaming

[Kieron Capehorn] wrote-:
> Is there a method of renaming all the files in a folder systematically? I
> have a folder full of files that begin with numbers. I want to add a 0 to
> the beginning of each filename (i.e. 1.xls will become 01.xls). I have
> tried putting the command 'rename *.* 0*.*' into command, but that replaced
> the first letter of each filename with a 0, rather than adding a 0.


> This there an easy way to do this?


> Thanks.



Open Command Prompt and run:
CD "FOLDER PATH"
for /f %f in ('dir /b /a-d') do @ren "%f" "0%f"


Good Luck, Ayush.
--
XP-Tips [Speed up menu display] :
http://www.microsoft.com/windowsxp/using/setup/tips/menu.mspx
 
Back
Top