简体   繁体   中英

Batch > file.txt to one file

I have a batch code like this

COMMAND1 > file.txt
COMMAND2 > file.txt
COMMAND3 > file.txt

And it is overriding file.txt I need it to add it not replace it can any one help

Result

Before:

result3

-

After:

result1
result2
result3

use >> to append to the file. Cheers

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM