Bat script renameing

February 25, 2010 at 07:11:39
Specs: Windows XP
I am trying to figure out how to rename a group of files while parsing part of the name off the front of the file. Example rename SAT001.txt to 001.txt.

See More: Bat script renameing

Report •


#1
February 25, 2010 at 10:31:59
If nobody else replies, use the private message function built into this site to contact a user named Mechanix2Go

He is a most excellent batchfile writer and if anybody can help you with this, he can.


Report •

#2
February 25, 2010 at 11:09:15
Hi Curt,

Thanks for the kind words.

mtclark, A bit more info will help. Do you want to knock of the first 3 chars? Or what?


=====================================
Helping others achieve escape felicity

M2


Report •

#3
March 12, 2010 at 08:01:12
Yeah that is exactly what I am looking to do.

Report •

Related Solutions

#4
March 12, 2010 at 08:11:23
@echo off & setLocal EnableDELAYedeXpansion

for /f "tokens=* delims= " %%a in ('dir/b/a-d') do (
set F=%%a
ren "%%a" "!F:~3!"
)


=====================================
Helping others achieve escape felicity

M2


Report •


Ask Question