getting output from .bat file to another file RRS feed

  • Question

  • hi,

    i want to run C# .exe file through .bat file and the output of .exe file should be copied to other file ,

    i tried this but i am getting empty file 

    @ECHO on
    ECHO Executing Hema_sample
    @ECHO on

    START /d "C:\Users\hvasudevaraju\Documents\Visual Studio 2013\Projects\Hema_sample\Hema_sample\bin\Debug" Hema_sample.exe >output.txt 

    plz help me in finding

    Wednesday, September 16, 2015 7:22 AM