- Batch rename files within sub folders?
- Posted by mark on October 1st, 2005
I have about 300 folders, inside each is a index.html file. I want to rename
all these files to cheese.html.
Is there an easy way to do it? I've tried various rename programs but all of
them don't rename within sub directories. I've also used the windows search
function to mass rename but it adds a (X)number after the name.
many thanks
- Posted by Pegasus \(MVP\) on October 1st, 2005
"mark" <mark@localhost.net> wrote in message
news:433dc315$0$15049$ed2619ec@ptn-nntp-reader02.plus.net...
> I have about 300 folders, inside each is a index.html file. I want to
rename
> all these files to cheese.html.
>
> Is there an easy way to do it? I've tried various rename programs but all
of
> them don't rename within sub directories. I've also used the windows
search
> function to mass rename but it adds a (X)number after the name.
>
> many thanks
- Click Start / Run
- Type cmd {OK}
- Type the location where your folders are, e.g.
cd /d "c:\Documents and Settings\Mark\My Music"
- Type this command, then press Enter:
for /d %a in (*.*) do ren "%a\index.html" cheese.html
- Posted by mark on October 1st, 2005
"Pegasus (MVP)" <I.can@fly.com> wrote in message
news:ePXJU0hxFHA.916@TK2MSFTNGP10.phx.gbl...
>
>> many thanks
>
> - Click Start / Run
> - Type cmd {OK}
> - Type the location where your folders are, e.g.
> cd /d "c:\Documents and Settings\Mark\My Music"
> - Type this command, then press Enter:
> for /d %a in (*.*) do ren "%a\index.html" cheese.html
thank you!!!!!