In a DOS prompt, how can I rename all the files to lower case and remove all spaces?
+1
A:
Make a batch file
@echo off
setlocal enabledelayedexpansion
for /f "delims=" %%i in ( ' dir /b /a-d *.* ') do (
set name="%%i"
set newname=!name: =!
rename "%%i !newname!
)
NOTE: Run under a test directory and see if you have the expected result. I have not tested it.
EDIT: Forgot to say this will only remove the spaces.
Amit
2010-09-03 01:28:17