How to input commands to an external application?

Ulises Bolaños 1 Reputation point
2020-08-20T01:25:08.953+00:00

Hi everyone,

I want to make things clear, I'm new into programming and coding, and have very little experience with it, I would appreciate concrete and concise solutions.

I'm making a Visual Basic Windows application on Visual Studio Community 2019. I managed to run an external console application linking the following code to a button Process.Start("consoleapp.exe") as I put the program in the same directory to the VB app, but my goal is to input commands that are compatible with this "consoleapp.exe") and get the output as well, and with this, run some functions depending on the output. How can I do this? is Process.Start("consoleapp.exe" going to work for this? Or do I have to use another function to run and manage the program?

Thanks for reading my question and I pardon for my bad english xd.

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,821 questions
{count} votes