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 ge开发者_Python百科t the return values directed to vb textbox.
anyone know how i can do this?
Use the Process
class to execute the command line utility and set it to redirect StandardOutput
to a .NET stream that you read from.
精彩评论