Smith
Smith

Reputation: 5961

redirect output from a dos exe to vb.net form

i have an dos exe which take argument, perform its functions and display the output in dos.

i need to call the dos file from vb passing the argument without showing the dos window, and get the return values directed to vb textbox.

anyone know how i can do this?

Upvotes: 1

Views: 717

Answers (1)

Oded
Oded

Reputation: 499002

Use the Process class to execute the command line utility and set it to redirect StandardOutput to a .NET stream that you read from.

Upvotes: 2

Related Questions