Computing.Net > Forums > Windows XP > Batch renaming 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 renaming files

Reply to Message Icon

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..



Sponsored Link
Ads by Google

Response Number 1
Name: 0x00x0
Date: September 25, 2008 at 12:22:08 Pacific
Reply:

Note also I do not want any file extensions. They currently have extensions (except the ones I already renamed) and I do not want them..


0

Response Number 2
Name: Kurt S
Date: September 25, 2008 at 13:28:06 Pacific
Reply:

I don't know how do do this with a script but you can try using a program called The Rename. It will do exactly what you want. And it's free

http://www.herve-thouzard.com/modul...


0

Response Number 3
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

Related Posts

See More



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.


0

Sponsored Link
Ads by Google
Reply to Message Icon






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 renaming files

Batch Rename Files www.computing.net/answers/windows-xp/batch-rename-files-/109651.html

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