拡張子.txtのファイル一覧取得
dir *.txt /s/b > file_list.txt
フォルダは以下のファイル一覧取得
dir /b /a-d /s > file_list.txt
dir でファイル・フォルダー名の一覧を取得
/b オプションでファイル・フォルダ名だけに絞り込み
/a-d オプションでフォルダを除外
/s オプションで下層フォルダも含めて取得
Go to list of users who liked
More than 5 years have passed since last update.
拡張子.txtのファイル一覧取得
dir *.txt /s/b > file_list.txt
フォルダは以下のファイル一覧取得
dir /b /a-d /s > file_list.txt
dir でファイル・フォルダー名の一覧を取得
/b オプションでファイル・フォルダ名だけに絞り込み
/a-d オプションでフォルダを除外
/s オプションで下層フォルダも含めて取得
Register as a new user and use Qiita more conveniently
Go to list of users who liked