By default the output of commandline applications is presented in console window and I know that using >
or >>
we can re-wrire/append the stdout to an external file but what if the commandline application doesn't have internal logging facility to save the output. I want the stdout to be both in the console and be saved in an external file. Is such a thing possible?
相关问题
- xcopy include folder
- Batch file if string starts by
- Jenkins - cmd is not recognized
- String Manipulation with case sensitivity
- Writing an EXE output to a batch file
相关文章
- How to print to stdout from Python script with .py
- Extracting columns from text file using Perl one-l
- How can one batch file get the exit code of anothe
- How to make jenkins fail at a failing windows batc
- cscript - print output on same line on console?
- Problems using start-process to call other powersh
- Python utilizing multiple processors
- Why do all Pre-build or Post-build events in Visua
Try something like this:
But using this you can only have one command-output in the log-file at once. You could try it with
>>
but that way you get the outputs of all commands every time you use this.