Batch rename files within sub folders?

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
 
P

Pegasus \(MVP\)

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
 
M

mark

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!!!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top