Jump to content
Xtreme .Net Talk

Running a external application


Recommended Posts

Guest rowansmith
Posted

I have a third party 32-Bit Command Prompt application that I wish to use the output from within VB.

 

How can I call the external application and get the results of the output (multiple lines of text) parsed back into Visual Basic for processing?

 

Thanks.

 

-Rowan

  • *Gurus*
Posted

When you start a process using System.Diagnostics.Process.Start, you have the option of redirecting the standard output.

 

Alternatively, there is a method ExecWaitWithCapture of the System.CodeDom.Compiler.Executor class which pretty much wraps this behaviour for you.

MVP, Visual Developer - .NET

 

Now you see why evil will always triumph - because good is dumb.

 

My free .NET Windows Forms Controls and Articles

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...