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 renaming files
Name: 0x00x0 Date: September 25, 2008 at 12:20:51 Pacific OS: XP CPU/Ram: 4gb Product: myself
Comment:
Hi, I have a whole bunch of files which I would like to rename sequentially, from 1 to 9999 or whatever. Problem is, I have already started to manually rename these and got up to like number 52. Is there a way to continue renaming these using a script without modifying the ones I already did? thanks in advance..
Name: superyutz Date: September 25, 2008 at 15:42:41 Pacific
Reply:
Many softwares exist to do this..... Checkout.......... http://www.freedownloadscenter.com/... Some are freeware, some shareware.... Choose your weapon....................
Superyutz' Renderings Nottingham, MD. 21236
Tech Support for the Common Man
0
Response Number 4
Name: worldlibrary Date: September 25, 2008 at 16:33:55 Pacific
Reply:
cls @echo off echo Program should be same dir as files
set n=1 for %%i in (*.jpg) do ( call ren %%i %%n%%.jp_ set /a n=n+1) ren *.jp_ *.jpg
You will need to change the jpg for *
and first n=1 to your last number ..53
Haven't tested it so make a test dir and copy over some files before using it.
0
Response Number 5
Name: Mechanix2Go Date: September 25, 2008 at 19:53:38 Pacific
Reply:
@echo off setLocal EnableDelayedExpansion
for /f "tokens=* delims= " %%a in ('dir/b/a-d *.') do ( set /a N+=1 )
for /L %%f in (1 1 !N!) do attrib +h %%f
:main for /f "tokens=* delims= " %%a in ('dir/b/a-d/a-h') do ( set /a N+=1 echo ren %%a !N! )
attrib -h *.*
===================================== If at first you don't succeed, you're about average.
M2
0
Response Number 6
Name: toast (by NoIdea) Date: September 26, 2008 at 00:47:27 Pacific
Reply:
Why is everyone playing over here? Gonna get smacked.
Summary: 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" ...
Summary: Hello! I have a bunch of files in a folder called 001_FILENAME.HTML where 001_ is always 001_ and FILENAME can be anything. I want a batch script to rename all the files to remove the 001_ and leave t...
Summary: I have no batch file experience, but I need a batch file that will rename & copy files from multiple directories to one single directory all on the same drive. The renamed file will add the folder na...