Skip to content

Instantly share code, notes, and snippets.

@senyaitiya
Created April 22, 2021 14:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save senyaitiya/16968ebade9b9169e8cf6113717df3ad to your computer and use it in GitHub Desktop.
Save senyaitiya/16968ebade9b9169e8cf6113717df3ad to your computer and use it in GitHub Desktop.
SET CURRENT_DIR=%cd%
SET LOG_NAME=linecount.log
SET LOG_DIR=%CURRENT_DIR%¥%LOG_NAME%
rem バッチファイルのあるディレクトリに移動
cd %CURRENT_DIR%
rem テキストファイルの行数をログに出力
find /c /v "" *.txt > %LOG_DIR%
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment