+ Post New Thread
Results 1 to 11 of 11
How do you do....it? Thread, Rename a batch of files all at once. in Technical; This is more for home use than anything else I guess. Does anyone know how to rename a load of ...
  1. #1
    Kyle's Avatar
    Join Date
    Jan 2006
    Posts
    974
    Thank Post
    91
    Thanked 14 Times in 13 Posts
    Rep Power
    21

    Rename a batch of files all at once.

    This is more for home use than anything else I guess.

    Does anyone know how to rename a load of files all at once. The example i will give is my mom has imported 1000 photos from her camera using the scanner and camera wizard in XP. But she forgot change the name of the last lot she did so now all the photos are called Majorca, instead of 100 of them being called Portugal.

    Now some one did show me how to do this in windows, but renaming the first file and doing some sort of key combination and the others all followed the naming. I can't remember for the life of me.

    Des anyone know what i mean or know of any software/other way of doing this?

  2. #2

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,460
    Thank Post
    646
    Thanked 1,614 Times in 1,444 Posts
    Rep Power
    419

    Re: Rename a batch of files all at once.

    ren majorca*.jpg portugal*.jpg

    Ben

  3. #3

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,460
    Thank Post
    646
    Thanked 1,614 Times in 1,444 Posts
    Rep Power
    419

    Re: Rename a batch of files all at once.

    so copy all the ones you want to be renamed to portugal into their own folder then from a command prompt cd into that folder and run the above command.

    Ben

  4. #4

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,460
    Thank Post
    646
    Thanked 1,614 Times in 1,444 Posts
    Rep Power
    419

    Re: Rename a batch of files all at once.

    or if it's an xp machine:

    http://graphicssoft.about.com/cs/ren...t/renamexp.htm

    1 Open My Computer to the folder containing all the files you want to rename.

    2 Select the group of files that you wish to rename. Use Shift or Ctrl to select additional files.

    3 Right click on the first file in the list and choose Rename from the context menu.

    4 Type a new name for the file, then hit enter.

    The first file will take on the name you type, all other selected files will append a serial number enclosed in parenthesis to the base name.
    If you typed 'file.jpg', the second file will be named 'file (1).jpg', and so on with increasing numbers.

    Ben

  5. #5
    mullet_man's Avatar
    Join Date
    Oct 2005
    Location
    Oldham
    Posts
    726
    Thank Post
    34
    Thanked 46 Times in 45 Posts
    Rep Power
    26

    Re: Rename a batch of files all at once.

    Quote Originally Posted by plexer
    or if it's an xp machine:

    http://graphicssoft.about.com/cs/ren...t/renamexp.htm

    1 Open My Computer to the folder containing all the files you want to rename.

    2 Select the group of files that you wish to rename. Use Shift or Ctrl to select additional files.

    3 Right click on the first file in the list and choose Rename from the context menu.

    4 Type a new name for the file, then hit enter.

    The first file will take on the name you type, all other selected files will append a serial number enclosed in parenthesis to the base name.
    If you typed 'file.jpg', the second file will be named 'file (1).jpg', and so on with increasing numbers.

    Ben
    Learn something new everyday, I never knew XP could do that!!!

    Thanks

  6. #6

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,460
    Thank Post
    646
    Thanked 1,614 Times in 1,444 Posts
    Rep Power
    419

    Re: Rename a batch of files all at once.

    If you use my first method it's okay as long as the names are the same length so if the pictures are all majorca001.jpg marjorca010.jpg it's ok as portugal001.jpg is longer however if not you will get some strange results.

    Ben

  7. #7
    Kyle's Avatar
    Join Date
    Jan 2006
    Posts
    974
    Thank Post
    91
    Thanked 14 Times in 13 Posts
    Rep Power
    21

    Re: Rename a batch of files all at once.

    Thnkas Plexer

    and yes you are right........you do learn something very day.

  8. #8

    plexer's Avatar
    Join Date
    Dec 2005
    Location
    Norfolk
    Posts
    13,460
    Thank Post
    646
    Thanked 1,614 Times in 1,444 Posts
    Rep Power
    419

    Re: Rename a batch of files all at once.

    Or a vbscript:

    Dim filesys, file, folderName, folderObj, fileColl, objRegEx, newFile

    Set filesys = CreateObject("Scripting.FileSystemObject")

    folderName = InputBox("", "Folder Name")

    Set folderObj = filesys.GetFolder(folderName)

    Set fileColl = folderObj.Files

    Set objRegEx = New RegExp
    objRegEx.Pattern = "majorca" ' looking for this

    For Each objFile In fileColl
    newFile = objRegEx.Replace(objFile.Name, "portugal") ' replacing with this
    filesys.MoveFile objFile, folderName & "\" & newFile
    Next

  9. #9
    mark's Avatar
    Join Date
    Jun 2005
    Posts
    3,966
    Thank Post
    248
    Thanked 49 Times in 45 Posts
    Blog Entries
    2
    Rep Power
    46

    Re: Rename a batch of files all at once.

    I use a bulk renamer that grabs the exif information from the picture file to name the file with the date and time it was taken.

    The ReName is one such utility:- http://www.herve-thouzard.com/module...hp?articleid=1

    or Siren:- http://www.softpedia.com/get/Office-...ls/Siren.shtml [- no install/ runs off a pen drive]

    [both free]

    SetNameToTime [just for photo's this one] is simple to use but is no longer free [only 15$ tho'].

  10. #10

    DaveP's Avatar
    Join Date
    Oct 2006
    Location
    Can't talk now: The mother-ship is calling!
    Posts
    8,882
    Thank Post
    351
    Thanked 1,288 Times in 880 Posts
    Blog Entries
    4
    Rep Power
    1128
    Here is another program to do the same job:

    Bulk Rename Utility:



    From the download site:

    Rename multiple files quickly, according to many flexible criteria.

    Rename files in many ways: add, replace, insert text into file names. Convert case, add numbers.

    Remove or change file extensions.

    Check the detailed preview before renaming.

    Rename photos using EXIF meta data (i.e. "Date Picture Taken", "Resolution" and other information embedded in all JPG photo files) Rename your holiday pictures from a meaningless dsc1790.jpg to NewYork1.jpg in a flash.

    Rename MP3 files using ID3 tags (a.k.a. MP3 ID3 tag renaming).

    Change files' creation and modification time stamps.
    Download site: Bulk Rename Utility

  11. Thanks to DaveP from:

    CraigM (19th November 2009)

  12. #11

    Join Date
    Mar 2008
    Location
    Cape Town
    Posts
    111
    Thank Post
    8
    Thanked 14 Times in 14 Posts
    Rep Power
    16
    Quote Originally Posted by DaveP View Post
    Here is another program to do the same job:

    Bulk Rename Utility:



    From the download site:



    Download site: Bulk Rename Utility
    +1, I've used BRU, and while the interface takes some getting used to, it is quite powerful. Been handy more than once already.

SHARE:
+ Post New Thread

Similar Threads

  1. Rename a PC from a batch file - Any ideas?
    By MrLudwig in forum Windows
    Replies: 13
    Last Post: 8th December 2007, 02:40 AM
  2. Running batch files in vista
    By Kained in forum Windows Vista
    Replies: 6
    Last Post: 4th September 2007, 02:25 PM
  3. numbers and batch files
    By russdev in forum Windows
    Replies: 4
    Last Post: 19th November 2005, 09:51 PM
  4. Blocking Batch Files using Group Policy in Server 2003
    By markwilliamson2001 in forum Windows
    Replies: 13
    Last Post: 4th October 2005, 05:28 PM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •