I'm trying to create a .bat file to make some tasks easier but i'm having troubles to redirect the Console output of my application (written in C#) to the console which execute my bat file.
In my program I just do :
Console.Writeline("some text");
Here is my bat file :
@echo
start "" "Myapp.exe" "-t" "-n" 2> NUL
pause
When I launch the bat file it just displays my command and "pause" but doesn't want to write all my lines.
Why ?
Thank you :)