【问题标题】:The result of the execution of the command is not adequate命令执行的结果不充分
【发布时间】:2019-06-12 14:24:42
【问题描述】:

命令执行结果不充分。

for %f in (*.txt) do type "%f" >> all.txt

剪切写入文件这一行并停止连接:

他无法确定为什么他的结果是错误的。

【问题讨论】:

    标签: windows batch-file cmd concatenation


    【解决方案1】:

    有必要更改脚本,因为上一个表明它必须将结果实时写入相同的目录和相同的格式(txt),导致它自己读取并写入最终文件。

    解决方法:

    copy *.txt all.txt
    

    此版本将处理内存中的文件,最后将创建结果文件。

    【讨论】:

    • 不过,这不会截断该行。
    猜你喜欢
    • 2015-01-13
    • 2019-05-04
    • 2016-03-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-11-09
    • 1970-01-01
    相关资源
    最近更新 更多