I am running win98 and have large amounts of files that I am changing from .htm to .asp. I wrote a batch file to go into each directory and rename *.htm *.asp.

Then problem is that I have to have a command specific to each dir...ie.

cd 010
rename *.htm *.asp
cd ../
cd 020
rename *.htm *.asp
cd ../

and this repeats for the number of directories in the directory structure.

It would be easier if I could do a for next loop like the following

for i=10; i++; step 10
cd 0i
rename *.htm *.asp
next


But I cannot find any documentation that says if DOS batch files support for next loops, or if they do. what the syntax is to accomplish this.

Any help would be greatly appreciated

James