Skip to content

Commit

Permalink
日本語コメントを削除してASCII化
Browse files Browse the repository at this point in the history
途中終了の実行制御が 'goto :EOF' になっていたのを訂正。
途中終了の場合も ENDLOCAL するように変更。
  • Loading branch information
berryzplus committed Sep 29, 2018
1 parent 432a28d commit 2638360
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions sakura/mingw32-del.bat
Original file line number Diff line number Diff line change
Expand Up @@ -2,25 +2,20 @@

SETLOCAL

:引数で渡されたファイル群を取得
set OUTFILES=%*
:パス区切りを置換
set OUTFILES=%OUTFILES:/=\%


:del_file
:1ファイルずつdelコマンドに渡して削除
for /F "tokens=1,*" %%f in ("%OUTFILES%") DO (
if exist %%f del /F /Q %%f
set OUTFILES=%%g
)

:ぜんぶ削除できたら終了
if "%OUTFILES%" == "" goto :EOF
if "%OUTFILES%" == "" goto :END
goto :del_file


:END

ENDLOCAL
exit /b

0 comments on commit 2638360

Please sign in to comment.