How to redirect log file in VC++ 2003 .NET

P

Peithon

Hi,
I want to generate a log file (e.g. output.txt) for debugging output.
I want it in my project's debug directory. I can generate the file but
not in the right place.

I open the project properties page and choose Debugging to get a
series of edit boxes, one is called Command Arguments.
I enter the following for Command Arguments:
output.txt

This creates the file in
C:\Program Files\Microsoft Visual Studio .NET 2003\Common7\IDE
aka $(DevEnvDir)

However, I want it in C:\Home\Coding\CPP\Project1\Debug
aka $(TargetDir). When I enter the Command Argument:
$(TargetDir)\output.txt it doesn't work.

Please would someone tell me what the correct Command Argument is to
get the output file where I want it.

Thanks,

Peithon
 
V

Victor Bazarov

Peithon said:
Hi,
I want to generate a log file (e.g. output.txt) for debugging output.
I want it in my project's debug directory. I can generate the file but
not in the right place.

I open the project properties page and [..]

BZZZZT! Wrong newsgroup. Try something with 'microsoft.public.vc' in
its name.

V
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,000
Messages
2,570,252
Members
46,848
Latest member
CristineKo

Latest Threads

Top