Link to home
Start Free TrialLog in
Avatar of helpdti
helpdti

asked on

DOS batch with double output redirection

Hello,

is there a way in Windows 7 to send the output of DOS commands both to video and to file (with a single execution)?

Thank you
Best regards
Avatar of DonConsolio
DonConsolio
Flag of Austria image

If you are using a powershell script you may use:

your_command | Tee-Object -file c:\tmp\mylogfile.txt
ASKER CERTIFIED SOLUTION
Avatar of albelo
albelo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial