Juha

Juha

  • NA
  • 4
  • 0

run exe in console

Oct 27 2011 5:44 AM
I have an exe that works in command prompt and needs two parameters feeded and enter pushed (to get some calculation results). However I need this to be worked directly from my vb.net application, so that those two parameters are feeded automatically and the results read into vb.

I can make the external exe run with Shell-command and i can feed commands to cmd with SendKeys class so that the external exe makes its calculation properly. But the calculation results appear in the cmd prompt window and I can't make my software read them. Is there any simple solution to this?

Answers (2)