Results 1 to 12 of 12

Thread: Mass file renaming

  1. #1
    HEXUS.social member Agent's Avatar
    Join Date
    Jul 2003
    Location
    Internet
    Posts
    19,185
    Thanks
    739
    Thanked
    1,614 times in 1,050 posts

    Mass file renaming

    I've got a few hundred files that need to be mass renamed. They are in the format:

    XXXXX0001.TGA

    Due to a balls up by me when setting the network render up, the XXXXX part needs be be removed. There are far too many to do by hand. The number is sequential and must be left untouched.

    Have had a quick Google, but there seems to be a lot of rubbish out there. I'm sure there is a simple way I'm missing?

    Thanks
    Quote Originally Posted by Saracen View Post
    And by trying to force me to like small pants, they've alienated me.

  2. #2
    NOT Banned
    Join Date
    Jan 2007
    Posts
    5,905
    Thanks
    412
    Thanked
    278 times in 253 posts

    Re: Mass file renaming

    could always do a little bit of coding to remove it I suppose. You'll just have to wait till someone who knows and uses one of those free file renamers comes along and recommends it otherwise ;D

    I'll see if I can cook up a test app.

  3. #3
    HEXUS.social member Agent's Avatar
    Join Date
    Jul 2003
    Location
    Internet
    Posts
    19,185
    Thanks
    739
    Thanked
    1,614 times in 1,050 posts

    Re: Mass file renaming

    Aye, was thinking there must be a simple scripted program for this type of thing?

    The file names are actually like this: "3dout0221.tga" which needs to be made into "0221.tga".
    I forgot the trailing slash when doing the other part of the job So now I have several hundred files like "0001.tga" in the directory "C:\3dout\0001.tga" and the rest in the root of C: like "C:\3dout0001.tga"

    I have less of the "3dout0001.tga" types, so I guess it makes sense to rename them

    I should stop being so lazy really and set up a permanent network drive for them to be rendered to. Wouldn't have any of this nonsense.

    Cheers
    Quote Originally Posted by Saracen View Post
    And by trying to force me to like small pants, they've alienated me.

  4. #4
    NOT Banned
    Join Date
    Jan 2007
    Posts
    5,905
    Thanks
    412
    Thanked
    278 times in 253 posts

    Re: Mass file renaming

    well managed to make it!

    It's here if you wanna test it out.

    Scan it if you want I haven't uploaded a virus >_>
    But if you want peace of mind please do so.

    Theres some zero-byte files in the temp folder for you to see it in action. Just run the exe and it will truncate the 5 chars in front of the filenames of any file in the directory "temp".

    Limitations:
    Only works with the same format you said Agent 13 character length filename (inc .ext)
    So only up to 10000 files can be renamed properly (9999->0000)

    Before and After shots

    Before:


    After:


    So to use it just clear the temp directory and place your files in there. (Use copies)
    Then run the .exe and it should remove all that junk from the front of the filename.
    If it all goes wrong it will just try to rename a file which doesn't exist and won't harm the system. Run it in a VM machine if you have one though

    HTH
    Last edited by moogle; 08-09-2008 at 05:22 PM. Reason: Typos

  5. Received thanks from:

    Agent (08-09-2008)

  6. #5
    Senior Member
    Join Date
    Feb 2008
    Posts
    925
    Thanks
    4
    Thanked
    161 times in 148 posts
    • smargh's system
      • Motherboard:
      • Gigabyte GA-EP45-UD3P
      • CPU:
      • Xeon E5450 with 775-to-771 Mod
      • Memory:
      • 16GB Crucial
      • Storage:
      • Intel X25-M G2 80GB/Adaptec 3405 4x 2TB Ultrastar RAID1 / 1x 6TB Hitachi He6 / Dying 2TB Samsung
      • Graphics card(s):
      • GTX 750 Ti
      • PSU:
      • Seasonic X-560
      • Case:
      • Lian-Li PC-A71
      • Operating System:
      • Windows 7 Ultimate 64bit
      • Monitor(s):
      • BenQ G2400WD
      • Internet:
      • Really Crap ADSL2 <3Mbit

    Re: Mass file renaming

    I use the free Bulk Rename Utility for this kind of thing. It's very good - you can preview what actions it will perform in the file list.

    Don't be put off by the interface. Just experiment - you only have to change the bits you're interested in. If you just want to remove the first 5 characters, just increment the "first n chars" bit and highlight the files you want to change from the file list. Job done. It will handle a few hundred (probably many thousands) of files just fine.

    http://www.bulkrenameutility.co.uk/Screenshots.php

  7. Received thanks from:

    Agent (08-09-2008)

  8. #6
    Member
    Join Date
    Aug 2005
    Posts
    94
    Thanks
    6
    Thanked
    4 times in 4 posts

    Re: Mass file renaming

    I recently found out that vista does a batch file rename that increments. As long as all the file numbers are sequential you could use that (if its your local OS)


    Imp

  9. Received thanks from:

    Agent (08-09-2008)

  10. #7
    HEXUS.social member Agent's Avatar
    Join Date
    Jul 2003
    Location
    Internet
    Posts
    19,185
    Thanks
    739
    Thanked
    1,614 times in 1,050 posts

    Re: Mass file renaming

    Thanks everyone - all brilliant suggestions And a HUGE thanks to Moogle who took the time and effort to do that program

    After trawling the help files though, it turns out there is a way to do it in 3D Studio Max

    Thanks all
    Quote Originally Posted by Saracen View Post
    And by trying to force me to like small pants, they've alienated me.

  11. #8
    NOT Banned
    Join Date
    Jan 2007
    Posts
    5,905
    Thanks
    412
    Thanked
    278 times in 253 posts

    Re: Mass file renaming

    Quote Originally Posted by Agent View Post
    After trawling the help files though, it turns out there is a way to do it in 3D Studio Max

    Thanks all


    no problems. another bit of code to add to my collection

  12. #9
    HEXUS.social member Agent's Avatar
    Join Date
    Jul 2003
    Location
    Internet
    Posts
    19,185
    Thanks
    739
    Thanked
    1,614 times in 1,050 posts

    Re: Mass file renaming

    What made matters worse is that the section was literally written in a "You've set network rendering up like a moron, haven't you?" attitude

    Final outcome anyway:



    Few hundred of them stitched together makes some wicked HD video
    Quote Originally Posted by Saracen View Post
    And by trying to force me to like small pants, they've alienated me.

  13. #10
    NOT Banned
    Join Date
    Jan 2007
    Posts
    5,905
    Thanks
    412
    Thanked
    278 times in 253 posts

    Re: Mass file renaming



    Looks very nice. Glad to see it's been sorted too

  14. #11
    SiM
    SiM is offline
    Senior Member
    Join Date
    Apr 2006
    Location
    London
    Posts
    7,787
    Thanks
    300
    Thanked
    633 times in 422 posts
    • SiM's system
      • Motherboard:
      • P5K Premium
      • CPU:
      • Q6600
      • Memory:
      • 8GB PC2-6400 OCZ ReaperX + Platinum
      • Storage:
      • 3 x 320gb HD322HJ single platter in Raid 0
      • Graphics card(s):
      • PNY GTX285
      • PSU:
      • Corsair TX650W
      • Case:
      • Antec 1200
      • Monitor(s):
      • 2407-HC

    Re: Mass file renaming

    I am a bit late but for future problems you might want to try "Flexible Renamer"

  15. #12
    Sublime HEXUS.net
    Join Date
    Jul 2003
    Location
    The Void.. Floating
    Posts
    11,819
    Thanks
    213
    Thanked
    233 times in 160 posts
    • Stoo's system
      • Motherboard:
      • Mac Pro
      • CPU:
      • 2*Xeon 5450 @ 2.8GHz, 12MB Cache
      • Memory:
      • 32GB 1600MHz FBDIMM
      • Storage:
      • ~ 2.5TB + 4TB external array
      • Graphics card(s):
      • ATI Radeon HD 4870
      • Case:
      • Mac Pro
      • Operating System:
      • OS X 10.7
      • Monitor(s):
      • 24" Samsung 244T Black
      • Internet:
      • Zen Max Pro

    Re: Mass file renaming

    BRU rocks, it's got pretty much everything you'd ever need in a rename tool

    Nice render Agent

    I prefer Cinema4d myself, but then I have been using it since v1 on the amiga
    (\__/)
    (='.'=)
    (")_(")

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. nero recode compiling volume failed
    By hvb in forum Welcome to HEXUS!
    Replies: 1
    Last Post: 02-09-2007, 10:14 AM
  2. Need help on my maxtor harddrives
    By arthurleung in forum PC Hardware and Components
    Replies: 10
    Last Post: 12-06-2007, 09:40 PM
  3. Multiple problems - help!
    By Ruggerbugger in forum Help! Quick Relief From Tech Headaches
    Replies: 7
    Last Post: 18-08-2006, 11:41 PM
  4. Nero vision express saying:'Burn process failed'
    By johnnr892 in forum Help! Quick Relief From Tech Headaches
    Replies: 15
    Last Post: 11-12-2005, 11:43 PM
  5. Dodgy DVD-r's ?
    By starside in forum Help! Quick Relief From Tech Headaches
    Replies: 12
    Last Post: 27-03-2005, 06:11 PM

Posting Permissions

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