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

 

posted @ 2014-03-02 15:39  wonkju  阅读(129)  评论(0编辑  收藏  举报