Last active
January 16, 2021 16:49
-
-
Save naonao0001777/5ac22bc6a5b5043896349cdc9de31e62 to your computer and use it in GitHub Desktop.
カレントディレクトリのファイルをすべて表示するbatファイル
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 拡張子を変更して使用 | |
@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