0
0

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.

cmdでフォルダ構成を調べる。(treeコマンド)

Last updated at Posted at 2019-02-27

フォルダ内の構成を知りたいときに使用する

cmdコマンド
tree /f c:¥〜¥Work > c:¥WorkTree.txt

Cドライブ直下にWorkTree.txtが出力されます。
出力結果

WorkTree.txt
c:¥〜¥Work 
├─仕事
│ ├─ スケジュール.xlsx
│ └─ 仕事メモ.txt
│
├─目標
│ ├─ タスク
│ │  └─ やること一覧.xlsx
│ │
│ ├─ ダイエット.xlsx
│ └─ 運動とは.txt
│ 
└─その他
  ├─ 新元号予想一覧.xlsx
  └─ 旅行計画.pdf

補足
c:¥〜¥Workは、任意のディレクトリ。
tree /?をするとオプションが調べられます。
オプション/fは、拡張子も含めて表示

0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?