| 1 | @echo off |
| 2 | Rem Make all files in a directory lower-case |
| 3 | dir /B > %TEMP%\files.tmp |
| 4 | |
| 5 | set len=%@LINES[%TEMP%\files.tmp] |
| 6 | do i = 0 to %len by 1 |
| 7 | set line=%@LINE[%TEMP%\files.tmp,%i] |
| 8 | ren %line% _%line% |
| 9 | ren _%line% %@LOWER[%line%] |
| 10 | enddo |
| 11 | |