So, I\'ve got a bunch of files with no extension. I want to write a windows batch script that will:
to do this in subdirectories use this:
for /f %a in ('dir /b /ad /s') do rename %a\*. *.bla
if you are using this in a batch file, you need to double the '%'
for /f %%a in ('dir /b /ad /s') do rename %%a\*. *.bla
edit:
and if you have spaces in your directory names, you can try this (batch version):
for /f "tokens=* delims= " %%a in ('dir /b /ad /s') do rename "%%a\*." "*.bla"