renaming a part of multiple beatch files

May 9, 2009 at 10:06:46
Specs: Windows XP
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


See More: renaming a part of multiple beatch files

Report •


#1
May 9, 2009 at 16:07:10
Try this
@echo off & setlocal EnableDelayedExpansion
for %%j in (*.tif) do (
set file=%%j
ren !file! !file:~0,8!LA%%~xj
)


Report •

#2
May 9, 2009 at 16:30:09
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_


Report •

#3
May 10, 2009 at 00:09:54
sry it shud b changed ti img1_001LA.tif,img1_002LA.tif

Report •

Related Solutions


Ask Question