- Joined
- Mar 9, 2010
- Messages
- 364
- Reaction score
- 26
- Trophies
- 0
- Age
- 43
- Website
- www.wiiflowiki.com
- XP
- 150
- Country

@spayrosam (didnt realise i was spelling your name for so long...sorry dislexia)
Code:FOR /f "delims=" %%i IN ('DIR /s /b /a-d "wads\*.wad"') DO CALL :RenameFile "%%i" GOTO :eof :renameFile FOR /f "tokens=1,2* delims=&" %%a IN ("%~nx1") DO (SET "PART1=%%a" & SET "PART2=%%b") IF "%PART1:~-1%"==" " SET "PART1=%PART1:~,-1%" REN %1 "%PART1%%PART2%" GOTO :eof
Ill add this tonight. first I'll check for bad archive names too.. then for wads this changes too:
Code:FOR /f "delims=" %%i IN ('DIR /s /b /a-d "wads\*^&*.wad"') DO CALL :RenameFile "%%i" FOR /f "delims=" %%i IN ('DIR /s /b /a-d "wads\*-*.wad"') DO CALL :RenameFile2 "%%i" GOTO:eof :renameFile FOR /f "tokens=1,2* delims=&" %%a IN ("%~nx1") DO (SET "PART1=%%a" & SET "PART2=%%b") IF "%PART1:~-1%"==" " SET "PART1=%PART1:~,-1%" REN %1 "%PART1%%PART2%" :renameFile2 FOR /f "tokens=1,2* delims=-" %%a IN ("%~nx1") DO (SET "PART1=%%a" & SET "PART2=%%b") IF "%PART1:~-1%"==" " SET "PART1=%PART1:~,-1%" REN %1 "%PART1%%PART2%"







