1 - Look up an old ASCII chart and discover 20h is Ctrl-T and 13h is Ctrl-M
2 - Issue the following on a CMD prompt
copy con myfile.txt
3 - Hold down the Ctrl key and hit T
4 - Hold down the Ctrl key and hit M
5 - To finish, quit and save hold down the Ctrl key and hit Z
This will then write the required file to disk.