Windowsのコマンドプロンプトで、ファイルを新規作成するコマンドがなかった。 そこで解決方法を考えた。 C:\> echo a > test.txtこれでtest.txtファイルが作られる。 でも"a"という文字が入ってる。 それを気にしなければOK。 ちなみに、文字を何も指定しないで作ったらどうなるかな、と思ってやってみた。 C:\> echo > test.txtすると ECHO は <ON> です。と入っていた。 残念。他にいい方法はないのか模索していたところ、 id:qosさんから情報提供して頂いた。感謝。 C:\> type nul > test.txt 上記のコマンドで、空(カラ)のファイルを新規作成できた。 ちなみにコマンドプロンプトの勉強でオススメのサイトは以下。 初めてのコマンドプロンプト 書籍だと以下。 [改訂新版]Windowsコマンドプロンプトポケットリファレン