Created
July 4, 2016 20:08
-
-
Save shibacho/0ad9ab63ccb83c2f84f41b1b38b8ddd6 to your computer and use it in GitHub Desktop.
(BMS zip extraction) bmscompression.bat で圧縮したzipを解凍し元々のzipファイルを削除する
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
REM What do this batch file? | |
REM Extract and delete bms zips. | |
REM BMS zipファイルを解凍し、元のzipファイルを削除します | |
REM How to use | |
REM Copy to one up hierarchy of the BMS folder location and execute. | |
REM BMSフォルダの一つ上のフォルダに置いてダブルクリックします。 | |
@echo off | |
REM location of 7za.exe | |
REM 7zipのコマンドライン版7zaは自分で適当な場所に置いてください | |
set exe="C:\7za\7za.exe" | |
set T1=%TIME: =0% | |
REM -------------------------------- | |
for /D %%d in (*) do ( | |
echo Change directory %%d... | |
cd "%%d" | |
for %%i in (*.zip) do ( | |
echo "Extracting %CD%\%%d\%%i -> %%~ni" | |
%exe% x "-o%CD%\%%d" "%%i" >> NUL | |
echo "Deleting %%i" | |
del "%%i" >> NUL | |
) | |
cd .. | |
) | |
set T2=%TIME: =0% | |
echo Begin time:%T1% | |
echo End time:%T2% | |
echo Done. Enjoy bms! | |
PAUSE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment