开发者

redirect output from a dos exe to vb.net form

开发者 https://www.devze.com 2023-02-27 05:35 出处:网络
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开发者_Pytho

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消