In VC++ 6.0 I could redirect input to and output from the program being
debugged by placing my input file in the desired directory and specifying the
directory in the "working directory" field in the debug options. For example,
I would put
"< input.txt > output.txt"
in the "program arguments" field to redirect input from input.txt and output to
output.txt. If I specified in the "working directory" field the directory where
input.txt resided everything would work as expected.
In Visual Studio C++ .NET 7.1 when I specify "< input.txt > output.txt" for
command arguments, I have verified that the input file is always searched for
(and the output file placed) in the common7\IDE folder off of the root VS
install directory. This is no matter what I type in the "Working Directory"
field. Before I put input.txt in the aforementioned install folder, there would
be an error message when I started debugging: "Output cannot be redirected
because the specified file is invalid."
I would like to avoid polluting the VS install folders. I would also like to
avoid specifying the full pathname of my input and output files. Does anyone
know how to get VS7 to debug the way VS6 did?
Thanks, Josh
Andy Pennell [MSFT] - 23 Oct 2003 22:55 GMT
This is a confirmed bug, fixed in the next version. Please dont ask me when that releases...

Signature
This posting is provided "AS IS" with no warranties, and confers no rights. Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Note: For the benefit of the community-at-large, all responses to this message are best directed to the newsgroup/thread from which they originated.
--------------------
> From: "JayWay" <JoshHueh_SPAM@yahoo.com>
> Subject: Debugger ignores "working directory" property when redirecting input and output
[quoted text clipped - 33 lines]
>
> Thanks, Josh