how can i read output from console in asp.net -


i trying read output .exe file of c++ program , trying use output further use in asp.net web application isn't working have done far

    system.diagnostics.process myprocess = new system.diagnostics.process();      myprocess.startinfo.createnowindow = true;     myprocess.startinfo.useshellexecute = false;     myprocess.startinfo.redirectstandardoutput = true;     myprocess.startinfo.workingdirectory = "c:\\users\\hussain\\documents";     myprocess.startinfo.filename = "demo.exe";     myprocess.startinfo.arguments = "myargument";     myprocess.start();     string s = myprocess.standardoutput.readtoend();     system.io.streamwriter file = new           system.io.streamwriter("c:\\users\\hussain\\documents\\123.txt");     file.writeline(s);      file.close();     myprocess.waitforexit();     myprocess.close(); 


Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -