Learning Resources
 

COPYCON command - It allows the creation of a file from the command prompt. Use it by typing copy con followed by the name of the file to create as

  copy con myfile.txt

A blank line is returned, which is the start of file. Enter the lines to insert into the file and press Ctrl + Z to create the file.