Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- for %%A in (*hero.* *icon.* *long.* *icon.* *logo.* *.json*) do DEL /F "%%~nxA"
- Setlocal DisableDelayedExpansion
- set SEARCH_TEXT=.tall.
- set REPLACE_TEXT=.
- for %%B in ("*%SEARCH_TEXT%*") do (
- set OLD_NAME=%%~nxB
- setlocal ENABLEDELAYEDEXPANSION
- set NEW_NAME=!OLD_NAME:%SEARCH_TEXT%=%REPLACE_TEXT%!
- ren "!OLD_NAME!" "!NEW_NAME!"
- endlocal
- )
Advertisement
Add Comment
Please, Sign In to add comment