i need a batch script
i have lots of files i want to remove blank spaces before extension (just those blank spaces that located before extension and not other ones)
look at example below
sads gd .txt
should rename to
i have fond script below but it remove any characters from end of file's name before extension
but i want just blank and empty spaces be removed and not any other characters
here is the batch script
FOR %%t IN (*.txt) DO (
CALL :process "%%~nt"
IF DEFINED success REN "%%t" "!success!%%~xt"
IF NOT DEFINED success GOTO :EOF
message edited by mioo_sara