cmd(或者说DOS窗口)输出内容到文件 格式是:command >> filefullpath 格式是:DOS命令>>文件名全路径 举例说明: dir *.* >> D:abc.txt dir *.* > D:abc.txt >> 代表追加。 > 代表写覆盖。