QUOTE(tool++ @ Nov 19 2006, 17:20)

MODS: Please move this to Development and delete this message, thanks!!
What would be the best way of running a command line app from within a VB program and displaying its output in a form (eg in a txtbox)?
Here's a simple example, for clarity: Say I have a form that has a box that you put an IP address in, it will run ping <ip> and then the output will appear as it is recieved in a little box ON THE FORM.
I've seen this done in apps a lot.
Any ideas?
Thanks :]
If you're using VB6, you're looking for the Shell() function (as I recall, but it's been years.)
If you're using VB.NET, you're looking for the System.Diagnostics.Process.Start() method.
Edit: Actually, maybe that's not what you're having problems with; perhaps you know how to run the ping utility, but you are wondering how to get the output that would normally appear on the console onto your form? I can't think of any realistic way to do that. When you run an external process, unless it's written in a way specifically to interact with your application, probably the only direct feedback you will be able to receive is the exit error code, which in the case of ping, probably tells whether the ping got there or whether it timed out.
The correct way to do this is just to use your application to ping the IP address yourself.
EDIT: Oh, clever! c0utta's solution will probably work for most simple command line applications.