Windows batch script to output log -


I am writing a simple batch script to execute 2 programs. I would like to create a log file every time, whether this batch script is executed, whether it is a success or failure.

  @echo on start "" / b / interested 7za.exe A C: \ nexus.7z c: \ nexus -pteSTING -mx7 & gt; & Gt; C: \ 7zip.txt START "" / b / wait xcopy.exe C: \ nexus.7z \\ ketsrv14 \ Software> & gt; C: \ copy.txt  

The above scripts will create logs for each program. Is there a way to combine logs and create only 1 log for both programs?

This should work I think the 7-zip will wait itself.
I use 7z.exe and I do not have any 7z.exe .

A C at 7z.exe at @echo: \ nexus.7z c: \ nexus -pteSTING -mx7> & Gt; C: \ 7zip.txt xcopy.exe C: \ nexus.7z \\ ketsrv14 \ Software> & gt; C: \ 7zip.txt

Comments

Popular posts from this blog

ios - How do I use CFArrayRef in Swift? -

eclipse plugin - Run java code error: Workspace is closed -

c - Error on building source code in VC 6 -