Results 1 to 9 of 9
  1. #1
    2 Star Lounger
    Join Date
    May 2002
    Location
    Londonderry, Ireland, Northern
    Posts
    159
    Thanks
    9
    Thanked 0 Times in 0 Posts

    batch filename editing

    Now using XP pro.
    What is the handiest way to edit filenames in batches? For instance, I have a lot of .JPG files that I need to change to .jpg.
    All help gratefully received!

  2. #2
    Super Moderator
    Join Date
    Dec 2000
    Location
    Renton, Washington, USA
    Posts
    12,560
    Thanks
    0
    Thanked 4 Times in 4 Posts

    Re: batch filename editing

    There should be no reason that the file type MUST be lower case.
    But there are many programs that can rename files.
    Do a google search on "Rename files" and you will find all kinds.

    Now running HP Pavilion a6528p, with Win7 64 Bit OS.

  3. #3
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: batch filename editing

    Erm - why would you want to change .JPG to .jpg? Although Windows remembers how filenames are created/entered and displays them that way, it doesn't distinguish between upper case and lower case when handling files.

    You can use the command prompt window or a batch file to rename all files of a certain type in a folder. The command for renaming would be:

    REN "C:Some FolderPicture Folder*.JPG" *.jpg

    where C:Some FolderPicture Folder is the folder containing the files.

  4. #4
    2 Star Lounger
    Join Date
    May 2002
    Location
    Londonderry, Ireland, Northern
    Posts
    159
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Re: batch filename editing

    Thank you, Dave: I was hoping for a recommendation.
    The webserver I use can't digest upper-case in filenames.
    All help gratefully received!

  5. #5
    2 Star Lounger
    Join Date
    May 2002
    Location
    Londonderry, Ireland, Northern
    Posts
    159
    Thanks
    9
    Thanked 0 Times in 0 Posts

    Re: batch filename editing

    Once again, Thank you, Hans.
    The webserver I use can't, or won't, digest upper-case anywhere in filenames.
    So the DOS batch-file approach is still the best way to go - OK.
    It would be nice, though, if REN would accept a /S and work through all sub-directories.
    All help gratefully received!

  6. #6
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

  7. #7
    Plutonium Lounger
    Join Date
    Oct 2001
    Location
    Lexington, Kentucky, USA
    Posts
    12,107
    Thanks
    0
    Thanked 1 Time in 1 Post

    Re: batch filename editing

    Oh yeah, I also have that jpg v. JPG problem with MY web host, as I would think most people do. In addition to Hans' suggestions, Alan Miller made this recommendation in <post:=582,336>post 582,336</post:>.

    Bulk Rename Utility

  8. #8
    4 Star Lounger
    Join Date
    May 2003
    Location
    Austin
    Posts
    401
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Re: batch filename editing

    On this same thread, is there an easy way to rename folders (just folders not files) via bat files?
    I have a program that has two separate functions (applications).
    Unfortunately, they all want claim to the registry and path despite conflicting dlls.

    I noticed that by creating a copy of DIR A after Prog1 installs ,and then allowing Prog2 to install over the original DIR,
    that I can regain functionality by just renaming the applicable Dir.

    Sequence:
    Install Prog1 create a copy of DIRA..called "Copy of DIRA"
    result: Prog1 works
    Install Prog2 allow it to install and register .dlls to DIRA
    result: Prog2 works Prog1 doesn't
    rename DIRA to DIR1 rename Copy of DIRA to DIRA
    result: Prog1 works again

    I realize it's just a workaround, but if I could automate it by 2 separate batch files, it could be run by the users.

    Any ideas?

  9. #9
    Plutonium Lounger
    Join Date
    Mar 2002
    Posts
    84,353
    Thanks
    0
    Thanked 29 Times in 29 Posts

    Re: batch filename editing

    The DOS command REN or RENAME can be used to rename folders as well as files in a batch file.

Posting Permissions

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