Batch file rename multiple files

Closed
eryto Posts 1 Registration date Sunday November 4, 2012 Status Member Last seen November 5, 2012 - Nov 4, 2012 at 04:01 AM
Hi guys,

I have a folder with many subfolders, each with one .pdf file and one .usi file. I want to mass rename all .usi files, that must rename exactly as .pdf files in relevant subfolder. For example - in first subfolder I have 123.pdf and QWE.usi files after renaming I must have 123.pdf and 123.usi.
And that's for each subfolder.
All these subfolders are in one folder.
I've lost some time with "for" command in command prompt, but cannot do my job.

thanks in advance!