sushantdh
October 7th, 2010, 12:02 PM
Hello, if I am executing a command in DOS, how can I display it into the terminal window as well as log it in a file. So, for example if I want to do dir to view the contents in C:\, I want to view the contents in the terminal window as well as write the same thing to a file as well. So far I have
command1 >> C:\\export.log 2>&1
This will not show anything that command1 executed in the terminal window but rather shows it in export.log file. I want to show in both.
Any help is much appreciated.
Thanks
Sushant Dhakal
command1 >> C:\\export.log 2>&1
This will not show anything that command1 executed in the terminal window but rather shows it in export.log file. I want to show in both.
Any help is much appreciated.
Thanks
Sushant Dhakal