I have a simple Console application which returns a int value out , when i run this application from command , How do i capture the Out put ? Code
static int Main(string[] args)
{
return 1;
}
I used the following line of Command
for /f %a in ('D://Test//ConsoleApplication1//ConsoleApplication1//bin//Debug//ConsoleApplication1.exe') do set "dow=%a"
When i output echo %dow%
, it prints what is in front of echo and not the value .