D:\test>copy con ky.bat @echo off type test.txt ^Z ← キー入力はここまで 1 個のファイルをコピーしました。 D:\test>ky ← ky.bat を実行します 「プロンプトを使おう」サンプルファイル。 D:\test>
D:\test>type con > ky.bat
D:\test>copy *.txt tests.txt test.txt test2.txt test3.txt 1 個のファイルをコピーしました。 ↑ 結果が tests.txt に出力されました D:\test>type tests.txt 「プロンプトを使おう」サンプルファイル。 ← test.txt の内容 「プロンプトを使おう」サンプルファイル。 ← test2.txtの内容 「プロンプトを使おう」サンプルファイル。 ← test3.txtの内容 D:\test>