Technology Toolbox

Your technology Sherpa for the Microsoft platform

Jeremy Jameson - Founder and Principal



Redirecting stderr to stdout

This post originally appeared on my MSDN blog:

Since I no longer work for Microsoft, I have copied it here in case that blog ever goes away.

Yesterday I replied to an email from a teammate in which I incorrectly stated that you can't redirect stderr to stdout in DOS -- er, I mean a command window in Microsoft Windows.

I would have sworn the last time I tried something like the following in Windows Server 2003 (a couple of years ago), I got an error message:

"Redeploy Features.cmd" > tmp.log 2>&1

Fortunately another teammate on the thread, Prashant Nayak, experimented with this and confirmed that it actually does work. Thanks, Prashant, for setting the record straight!


No comments posted yet.

Add Comment

Optional, but recommended (especially if you have a Gravatar). Note that your email address will not appear with your comment.
If URL is specified, it will be included as a link with your name.

To prevent spam from being submitted, please select the following fruit: Pear

Please add 7 and 1 and type the answer here: