I have a bunch of files and I'd like to remove all the characters that are not in the alphabet. So given a filename of "Home - noises (f).txt" i want a result of "Home noises f.txt. the batch file is in the samefolder and it doesnt need to be recursive. this is what i have so far:
@echo ON
SETLOCAL EnableDelayedExpansion
For %%# in (*.*) do (
Set MyVar=%%~n#
set MyVar=!MyVar:"-"= !
REN "%%~n#" "!MyVar!"
set MyVar=!MyVar:"("= !
REN "%%~n#" "!MyVar!"
set MyVar=!MyVar:")"= !
REN "%%~n#" "!MyVar!"
echo %%~n#>>text.txt
)
Pause&Exit