Created
August 30, 2023 10:59
-
-
Save Soulwest/e821d33e1b598cf82a354d4b3fb8b5e2 to your computer and use it in GitHub Desktop.
Windows batch rename for CDN
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Win+R cmd | |
cd somethere/ | |
for /f "Tokens=*" %f in ('dir /l/b/a-d') do (rename "%f" "%f") | |
cmd /e:on /v:on /c "for %f in ("* *.*") do (set "n=%~nxf" & set "n=!n: =_!" & ren "%~ff" "!n!" )" | |
*.* may be replaced with *.exe |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment