#author("2019-03-02T05:19:56+00:00","default:haikikyou","haikikyou")
#author("2019-03-21T13:37:10+00:00","default:haikikyou","haikikyou")
[[Windows/コマンドプロンプト/コマンド]]

#contents


* 内容 [#k0d81663]

- ディレクトリを作成する。
- 再帰的にディレクトリを作成できる。
ドライブやパスのフォルダ構造を図式表示する。

* 使用方法 [#u8a2b7ba]

#geshi(bash){{{
md [<Drive>:]<Path>
mkdir [<Drive>:]<Path>
tree [<Drive>:][<Path>] [/f] [/a]
}}}

** オプション [#le6fdaf5]

|オプション|説明|h
|/f|ファイル名を表示する。|
|/a|ascii文字を表示する。|


* 使用例 [#i19d262c]

** ディレクトリを作成する [#a94992eb]
** フォルダ内の構造を表示する [#of24ab11]


#geshi(dos){{{
C:\Users\Administrator\dos>md parent\child
c:\test\docs>tree
フォルダー パスの一覧
ボリューム シリアル番号は 7241-A2C2 です
C:.
├─download
└─pictures

C:\Users\Administrator\dos>dir /s parent
 ドライブ C のボリューム ラベルがありません。
 ボリューム シリアル番号は 0A12-47B4 です
c:\test\docs>tree /a
フォルダー パスの一覧
ボリューム シリアル番号は 7241-A2C2 です
C:.
+---download
\---pictures

 C:\Users\Administrator\dos\parent のディレクトリ
c:\test\docs>tree /f
フォルダー パスの一覧
ボリューム シリアル番号は 7241-A2C2 です
C:.
│  bar.out
│  foo.out
│  hello.out

├─download
│      file.txt

└─pictures

2019/03/02  14:12    <DIR>          .
2019/03/02  14:12    <DIR>          ..
2019/03/02  14:12    <DIR>          child
               0 個のファイル                   0 バイト

 C:\Users\Administrator\dos\parent\child のディレクトリ

2019/03/02  14:12    <DIR>          .
2019/03/02  14:12    <DIR>          ..
               0 個のファイル                   0 バイト

     ファイルの総数:
               0 個のファイル                   0 バイト
               5 個のディレクトリ  296,915,824,640 バイトの空き領域

}}}

* 参考リンク [#x442310a]

- https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/md
- https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/tree



トップ   一覧 単語検索 最終更新   ヘルプ   最終更新のRSS
目次
ダブルクリックで閉じるTOP | 閉じる
GO TO TOP