2
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

コマンドラインでフォルダ一覧を出す

Last updated at Posted at 2015-08-29

拡張子.txtのファイル一覧取得

dir *.txt /s/b > file_list.txt

フォルダは以下のファイル一覧取得

dir /b /a-d /s > file_list.txt

dir でファイル・フォルダー名の一覧を取得
/b オプションでファイル・フォルダ名だけに絞り込み
/a-d オプションでフォルダを除外
/s オプションで下層フォルダも含めて取得

2
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?