Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium


DOS batch with double output redirection

Posted on 2012-09-11
Medium Priority
Last Modified: 2012-09-11

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
Question by:helpdti
LVL 15

Expert Comment

ID: 38388064
If you are using a powershell script you may use:

your_command | Tee-Object -file c:\tmp\mylogfile.txt

Accepted Solution

albelo earned 1000 total points
ID: 38388076
You can use the Tee command to perform the Double Output.

The GNU tool collection is always a good choice:


The tee implementation is part of the core package:



wintee: http://code.google.com/p/wintee/

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Lee
Windows 7 Ultimate and Enterprise (and 2008 R2) introduced a new feature you may not be aware of - Boot from VHD.   Boot from VHD (or what Microsoft refers to asNative Boot allows you to install Windows to a VHD (Virtual Hard Disk) file that is t…
If you get continual lockouts after changing your Active Directory password, there are several possible reasons.  Two of the most common are using other devices to access your email and stored passwords in the credential manager of windows.
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
This Micro Tutorial will give you a basic overview of Windows Live Photo Gallery and show you various editing filters and touches to photos you can apply. This will be demonstrated using Windows Live Photo Gallery on Windows 7 operating system.
Suggested Courses

571 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question