visual c++ - Exe standard output writing in chunks, not immediately - Batch Scripting -


i have exe (vc++ application), runs through day, prints logs , there using printf() , console::writeline(); statements.

this exe called batch script below

************** set log=d:\myproj\log\myprog.log cmd /c d:\myproj\myprog.exe>>%log% 2>&1 echo %date% %time% end >>%log% ************** 

but here log file not updating in real time. log updating in chunks or @ completion of exe process. not able track going on in real time.

some times see log traces coming previous execution[not sure].

i clueless, happening. guys me on !!!

thanks in advance regards deepan