格式是:command >> filefullpath
举例说明:
dir *.* >> D:\abc.txt
dir *.* > D:\abc.txt
第一条中的>>代表追加。
第一条中的>代表写覆盖。
cmd(或者说DOS窗口)输出内容到文件
原文:https://www.cnblogs.com/yibeimingyue/p/10488723.html