Computing.Net > Forums > Windows XP > Batch Rename Files

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Batch Rename Files

Reply to Message Icon

Name: jfarrell471
Date: July 9, 2004 at 11:10:09 Pacific
OS: XP
CPU/Ram: P4 1.80GHz/512MB RAM
Comment:

can anyone help me write a batch file which will rename multiple files in a given directory removing specified text from the name, as such:

"some_name[1].gif" to "some_name.gif"
"another_name[1].gif" to "another_name.gif"
etc.

basically, removing in these examples "[1]" from the name.
I dont want to have to specify any part of the name, except what to remove - in this case "[1]" - from the file name, so it should use wildcard matching somehow (*.*) for the name and ext while removing the undesireable text string from the first part of the name.

I tried using:
ren *[1].* *.*
but to no avail. I can get this to work:
ren *[1].* *[2].*
but I want to delete the [1], not alter it.

Thanks


JFarrell471



Sponsored Link
Ads by Google

Response Number 1
Name: ravingbanana
Date: July 9, 2004 at 12:02:12 Pacific
Reply:

Don't know exactly what you're using it for, but I've used this program with great success renaming loads of files:

http://www.download.com/Rename-It/3000-2248-10148114.html?tag=lst-4-15


0

Response Number 2
Name: mikeo
Date: July 9, 2004 at 13:59:42 Pacific
Reply:

Windows Explorer in Windows XP lets you rename multiple files with one command, but alas, only in a limited way. First highlight the files you want to rename. For noncontiguous files, hold down the Ctrl key as you click on the filenames. Then press F2 and enter the new name. The files will all be given the same name, with consecutive numbers appended to differentiate them.

You can also undo the renaming, one file at a time, with Ctrl-Z. Note that you cannot rename the extensions on multiple files at once, only change each file's name to the left of the extensio


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Guest account limiting AIM and MSN Instant messe...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Windows XP Forum Home


Sponsored links

Ads by Google


Results for: Batch Rename Files

Batch rename files www.computing.net/answers/windows-xp/batch-rename-files/162164.html

Batch file to copy and rename files www.computing.net/answers/windows-xp/batch-file-to-copy-and-rename-files/178066.html

Batch rename for XP www.computing.net/answers/windows-xp/batch-rename-for-xp/50114.html