Computing.Net > Forums > Programming > renaming a part of multiple beatch 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.

renaming a part of multiple beatch files

Reply to Message Icon

Name: prudhviteja123
Date: May 9, 2009 at 10:06:46 Pacific
OS: Windows XP
Subcategory: General
Comment:

sir
i have files with names
img1_001A.tif,img1_002A.tif
lyk dat till img1_050A.tif

I need to change them to img1_001LA.tif,img_002LA.tif..

like that
please some body help me



Sponsored Link
Ads by Google

Response Number 1
Name: Shaka
Date: May 9, 2009 at 16:07:10 Pacific
Reply:

Try this
@echo off & setlocal EnableDelayedExpansion
for %%j in (*.tif) do (
set file=%%j
ren !file! !file:~0,8!LA%%~xj
)


0

Response Number 2
Name: Valerie (by Garibaldi)
Date: May 9, 2009 at 16:30:09 Pacific
Reply:

I need to change them to img1_001LA.tif,img_002LA.tif..

First you have to decide which format you want the filenames to be renamed to. You have IMG1_ and IMG_


0

Response Number 3
Name: prudhviteja123
Date: May 10, 2009 at 00:09:54 Pacific
Reply:

sry it shud b changed ti img1_001LA.tif,img1_002LA.tif


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Programming Forum Home


Sponsored links

Ads by Google


Results for: renaming a part of multiple beatch files

batch rename files with a part of.. www.computing.net/answers/programming/batch-rename-files-with-a-part-of/16747.html

extracting a part of string in Batch File www.computing.net/answers/programming/extracting-a-part-of-string-in-batch-file/18991.html

Renaming a directory of files with spaces www.computing.net/answers/programming/renaming-a-directory-of-files-with-spaces/19875.html