Re: Redirecting the standard error and output
From: Jochen Kalmbach (nospam-Jochen.Kalmbach_at_holzma.de)
Date: 03/03/04
- Next message: Ivan Debono: "Moving a function from VB to VC"
- Previous message: Bansidhar: "Redirecting the standard error and output"
- In reply to: Bansidhar: "Redirecting the standard error and output"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 02 Mar 2004 23:38:29 -0800
=?Utf-8?B?QmFuc2lkaGFy?= wrote:
> I want to redirect my program output to some file. I could do for
> standard output by following command
>
> myapp.exe > out.txt
>
> But I was not able to redirect my error messages from the above
> application to same file. Which the command for redirecting both error
> and output at the same time?
myapp.exe > out.txt 2>&1
For more info see: Using command redirection operators
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en
-us/redirection.mspx
-- Greetings Jochen Do you need a memory-leak finder ? http://www.codeproject.com/tools/leakfinder.asp
- Next message: Ivan Debono: "Moving a function from VB to VC"
- Previous message: Bansidhar: "Redirecting the standard error and output"
- In reply to: Bansidhar: "Redirecting the standard error and output"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|