Skip to content

Instantly share code, notes, and snippets.

@naonao0001777
Last active January 16, 2021 16:49
Show Gist options
  • Save naonao0001777/5ac22bc6a5b5043896349cdc9de31e62 to your computer and use it in GitHub Desktop.
Save naonao0001777/5ac22bc6a5b5043896349cdc9de31e62 to your computer and use it in GitHub Desktop.
カレントディレクトリのファイルをすべて表示するbatファイル
rem 拡張子を変更して使用
@echo off
setlocal enabledelayedexpansion
set /a count=0
echo display current directory file content
for %%i in (*.txt) do (
echo ファイル名:%%i
set /a count=!count!+1
type %%i | more
)
echo ファイル数:%count%
pause
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment