• batch filename editing

    Home » Forums » AskWoody support » Windows » Windows – other » batch filename editing

    Author
    Topic
    #433449

    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.

    Viewing 1 reply thread
    Author
    Replies
    • #1019545

      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.

      DaveA I am so far behind, I think I am First
      Genealogy....confusing the dead and annoying the living

      • #1019562

        Thank you, Dave: I was hoping for a recommendation.
        The webserver I use can’t digest upper-case in filenames.

    • #1019546

      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.

      • #1019563

        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.

      • #1025062

        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?

        • #1025082

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

    Viewing 1 reply thread
    Reply To: Reply #1019563 in batch filename editing

    You can use BBCodes to format your content.
    Your account can't use all available BBCodes, they will be stripped before saving.

    Your information:




    Cancel