FOAK: XP mass file rename

Discussion in 'UK Motorcycles' started by Jeremy, Jul 5, 2006.

  1. Jeremy

    Jeremy Guest

    I have hundreds of files in a folder (on windows xp) which all have
    names such as

    Time 1 Add.png (i.e. capital letters and spaces)

    I want to do a mass rename so that such a file would subsequently be
    called

    time_1_add.png

    Anyone suggest a utility that might handle this requirement?

    --

    jeremy
    '01 Triumph Sprint ST in green
    _______________________________________
    jeremy0505 at gmail.com
     
    Jeremy, Jul 5, 2006
    #1
    1. Advertisements


  2. Any use ?

    http://support.microsoft.com/kb/320167/
     
    Brownz @ Work, Jul 5, 2006
    #2
    1. Advertisements

  3. Jeremy

    Jeremy Guest

    Not really thanks - I want to retain the original "structure" of the
    name - the article looks as though it will rename multiple files to have
    the same name as each other with a number appended.

    thanks though

    --

    jeremy
    '01 Triumph Sprint ST in green
    _______________________________________
    jeremy0505 at gmail.com
     
    Jeremy, Jul 5, 2006
    #3
  4. Jeremy wrote
    Standard fare for a *nix shell.

    Install cygwin.
     
    steve auvache, Jul 5, 2006
    #4
  5. Jeremy

    Dan White Guest

    http://www.alatar.de/projects/renamefiles/index.html

    It's bloody good, been using it for years. Make sure you look at the
    "preview" option, with "Only show files that will be changed" selected
    before you commit. Then you can see what the files *will* look like.
     
    Dan White, Jul 5, 2006
    #5
  6. Jeremy

    Jeremy Guest

    I feared that might be the suggestion - I guess we're talking an 'mv'
    command with some [ABCDE] [abcde] type construct?

    --

    jeremy
    '01 Triumph Sprint ST in green
    _______________________________________
    jeremy0505 at gmail.com
     
    Jeremy, Jul 5, 2006
    #6
  7. They're PaintShopPro files right? Hmm, I don't think PSP Batch
    conversion allows a file name change in that manner, but, IIRC
    Photoshop Batch conversion might. I don't have it installed here to
    check.
     
    DoetNietComputeren, Jul 5, 2006
    #7
  8. Jeremy

    Jeremy Guest

    Not sure of the origins - it's part of a set of business icons that I
    just bought. There are also .gif files in there too - really looking for
    a generic file management utility rather than something within another
    application if at all possible.


    --

    jeremy
    '01 Triumph Sprint ST in green
    _______________________________________
    jeremy0505 at gmail.com
     
    Jeremy, Jul 5, 2006
    #8
  9. Jeremy

    darsy Guest

    don't you know any scripting languages?

    about 6 lines or Perl ought to suffice.

    Hell, you could bodge something in ASP or PHP if you're desperate.
     
    darsy, Jul 5, 2006
    #9
  10. Jeremy

    Higgins@work Guest

    Have you forgotten who you're talking to?
     
    Higgins@work, Jul 5, 2006
    #10
  11. Jeremy wrote
    Why? Having some form of *nix on your system gives a you very powerful
    set of simple administrative tools and it seems to me that you are in
    need of some.

    It is *nix, there are at least 57 different ways of doing it.
     
    steve auvache, Jul 5, 2006
    #11
  12. Jeremy

    Jeremy Guest

    Exactly what I wanted Dan - works a treat - ta.

    --

    jeremy
    '01 Triumph Sprint ST in green
    _______________________________________
    jeremy0505 at gmail.com
     
    Jeremy, Jul 5, 2006
    #12
  13. Jeremy

    Jeremy Guest

    Dabble with ksh as required but it's not part of my "day job". In the
    time it took to download and install cygwin, I had the job done using
    Dan's suggestion.
    I was desperate, but not *that* desperate ;)


    --

    jeremy
    '01 Triumph Sprint ST in green
    _______________________________________
    jeremy0505 at gmail.com
     
    Jeremy, Jul 5, 2006
    #13
  14. Jeremy

    Jeremy Guest

     
    Jeremy, Jul 5, 2006
    #14
  15. Jeremy wrote
    Yebbut you ain't learned anything have you? You are just as fucking
    iggerrant now as you were an hour ago.
    6 lines is five lines of overkill anyway.
     
    steve auvache, Jul 5, 2006
    #15
  16. Jeremy

    Steve Parry Guest

    open a CMD prompt .. .navigate to the folder containing your files
    type
    rename "Time ? Add.png" time_?_add.png

    press enter

    Job done
    HTH
     
    Steve Parry, Jul 5, 2006
    #16
  17. Jeremy

    Steve Parry Guest

    easy in XP too
    cmd prompt
    rename "Time ? Add.png" time_?_add.png
     
    Steve Parry, Jul 5, 2006
    #17
  18. Jeremy

    Jeremy Guest

    Repeat 1365 times for that one folder.

    --

    jeremy
    '01 Triumph Sprint ST in green
    _______________________________________
    jeremy0505 at gmail.com
     
    Jeremy, Jul 5, 2006
    #18
  19. Jeremy

    Steve Parry Guest

    what are you on about ? That one line will rename all files matching those
    filters in one hit.
     
    Steve Parry, Jul 5, 2006
    #19
  20. Jeremy

    Steve Parry Guest

    PS bad form etc

    try it create a folder with a couple of renamed txt files in matching your
    original naming scheme then apply that command within that folder
     
    Steve Parry, Jul 5, 2006
    #20
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.