Batch rename files within sub folders?

  • Thread starter Thread starter mark
  • Start date Start date
M

mark

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
 
mark said:
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
 
Pegasus (MVP) said:
- 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!!!!!
 
Back
Top