Two ways to create file using 'doc'.
Here are two ways to create file using 'doc' command:
Method i:
1 copy con [file name][enter key] 2 [content] 3 ctrl+z 4 for instance, 5 copy con [hello.txt][enter key] 6 hello 7 ctrl+z
Method ii:
1 echo [content]>[file name][enter key] 2 for instance, 3 echo hello>hello.txt