Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: BATCH RENAME  (Read 2148 times)

0 Members and 1 Guest are viewing this topic.

architech

    Topic Starter


    Rookie
    BATCH RENAME
    « on: January 18, 2007, 03:56:50 PM »
    I have (what i believe) something simple....

    How do you batch rename files....

    I have 200 (*.jpg)s and wish to add one word infront of the filenames.

    how do you do this.....?

    I thought it would be as easy as....


    rename *.* rich*.*

    But that replaces the 1st four characters of the filename....  :-?
    I want to add the word rich in addition to the filenames....

    Thank you in advance,
    R

    Sidewinder



      Guru

      Thanked: 139
    • Experience: Familiar
    • OS: Windows 10
    Re: BATCH RENAME
    « Reply #1 on: January 18, 2007, 04:47:53 PM »
    Using wildcards with rename can really muck up a directory. This snippet will simply list the changes to be made. Once you're satisfied, change echo to ren

    Code: [Select]
    for /f "tokens=* delims=" %%i in ('dir /b *.jpg') do (
          echo "%%i" "rich%%i"
          )

    Good luck.  8-)
    The true sign of intelligence is not knowledge but imagination.

    -- Albert Einstein

    architech

      Topic Starter


      Rookie
      Re: BATCH RENAME
      « Reply #2 on: January 18, 2007, 05:30:43 PM »
       ;D
      Thanx DUDE!

      YOU ROCK!

      ITS WORKS!