- 追加された行はこの色です。
- 削除された行はこの色です。
#author("2019-03-02T05:20:19+00:00","default:haikikyou","haikikyou")
#author("2019-03-21T13:33:25+00:00","default:haikikyou","haikikyou")
[[Windows/コマンドプロンプト/コマンド]]
#contents
* 内容 [#m5d21ba9]
- ディレクトリを作成する。
- 再帰的にディレクトリを作成できる。
ファイルの内容を表示する。
* 使用方法 [#v7f63ab9]
#geshi(bash){{{
md [<Drive>:]<Path>
mkdir [<Drive>:]<Path>
type [<Drive>:][<Path>]<FileName>
}}}
** オプション [#j538a530]
|オプション|説明|h
* 使用例 [#v950a907]
** ディレクトリを作成する [#v4be272b]
** ファイルの内容を表示する [#v4be272b]
#geshi(dos){{{
C:\Users\Administrator\dos>md parent\child
c:\test\docs>type foo.out
foo
C:\Users\Administrator\dos>dir /s parent
ドライブ C のボリューム ラベルがありません。
ボリューム シリアル番号は 0A12-47B4 です
c:\test\docs>type foo.out | find "fo"
foo
C:\Users\Administrator\dos\parent のディレクトリ
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 バイトの空き領域
}}}
* 参考リンク [#f784c2a1]
- https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/md
- https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/type