CMD outputs in the same txt file -
i have batch file multiple commands:
xcopy c:\file_path c:\destination
rename c:\file_path new_name
del c:\file_path
i need them write outputs in same text file. in way @ end of process have txt file procedure , can check if has been done correctly. tried following command after each single command/step:
command 1> output.txt 2>&1
but rewrites file. not keep output of steps last one. how can it? thanks
according ms should using "append" operator - >>
.
this article: https://technet.microsoft.com/en-us/library/bb490982.aspx
Comments
Post a Comment