header1   header
header
header Register : : Login header
header
connector   connector
menuleft menuright
submenu   submenu
left
Bulk renaming fotos from Name_Firstname to username
Last Post 17 Sep 2010 04:59 AM by George Howarth. 1 Replies.
Printer Friendly
  •  
  •  
  •  
  •  
  •  
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Not Resolved
ziegeUser is Offline
New Member
New Member
Posts:13
Avatar

--
16 Sep 2010 10:46 PM
    Hello experts,

    our teachers take pictures of students at the beginning of the year. They probably name the fotos like firstname_name.jpg or maybe name.firstname.jpg. Different separators are thinkable: _ or - or .

    I want to rename all the fotos in a bulk operation to the windows usernames. This usernames looks like this:

    Simpso.Bartho.123456

    in general: <6 characters_of_firstname>.<6 characters_of_surname>.
     
    All usernames are available in a csv-file. Even the firstnames and surnames are availabe in that flatfile.

    So the script has to read the fotos one by one, then do a kind of vlookup in csv and replace the name of the fotos.

    Is that possible with ps?

    muchas gracias
    ziege



    George HowarthUser is Offline
    Basic Member
    Basic Member
    Posts:360
    Avatar

    --
    17 Sep 2010 04:59 AM
    Can you give us an sample of what the CSV looks like?

    Sounds pretty easy to do. All you would need to do is setup a hashtable and then rename accordingly as you loop through the image files.
    You are not authorized to post a reply.


    Active Forums 4.3
    right
    footer   footer
    footer Sponsored by Quest Software • SAPIEN Technologies • Compellent • Microsoft Windows Server 2008 R2 footer
    footer   footer