how to rename files to small letters code example Example: rename file to lowercase windows for /f "Tokens=*" %f in ('dir /l/b/a-d') do (rename "%f" "%f")