Here are two ways to create file using ‘doc’ command:
Method i:
copy con [file name][enter key]
[content]
ctrl+z
for instance,
copy con [hello.txt][enter key]
hello
ctrl+z
Method ii:
echo [content]>[file name][enter key]
for instance,
echo hello>hello.txt