FG

Windows: Command line redirection to text file while also seeing output

Fresh3 days ago
Mar 15, 202699842 views
Confidence Score0%
0%

Problem

I'm writing a C program in Windows, my printf calls print to the command line, and I know that I can redirect all this output to a text file using: However, I wish to also see the output that would have been printed to the console as well as log all of it in a text file. Is there a way to do this? …

Error Output

myProgram.exe > mylog.txt

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
Unverified Fix
New Fix – Awaiting Verification

Fix for: Windows: Command line redirection to text file while also seeing output

Low Risk

The windows PowerShell has a tool that can do that, named after the unix tool which does the same. Alternatively, there are ports of the unix for windows: GNU utilities for Win32 (last update 2003) CoreUtils for Windows (last update 2005)

Awaiting Verification

Be the first to verify this fix

Sign in to verify this fix

Environment