Created
July 15, 2017 16:49
-
-
Save udaken/b0e74b4ffbbe1bf15f03798e1ce8a100 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| @echo off | |
| @chcp 65001 | |
| :LOOP_BEGIN | |
| if not "%~1" == "" ( | |
| pushd "%~d1%~p1" | |
| echo "<%~n1%~x1>" | |
| if /i "%~x1" equ ".zip" ( | |
| ren "%~n1%~x1" "%~n1.cbz" | |
| ) else if /i "%~x1" equ ".rar" ( | |
| ren "%~n1%~x1" "%~n1.cbr" | |
| ) else if /i "%~x1" equ ".7z" ( | |
| ren "%~n1%~x1" "%~n1.cb7" | |
| ) | |
| if ERRORLEVEL 1 pause | |
| popd | |
| shift | |
| goto LOOP_BEGIN | |
| ) | |
| pause | |
| @echo on |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment