Click here to Skip to main content
16,005,682 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: How to pass a ADO object as a parameter to a function? Pin
Ray Cassick23-Dec-02 7:02
Ray Cassick23-Dec-02 7:02 
GeneralRe: How to pass a ADO object as a parameter to a function? Pin
Nick Seng25-Dec-02 14:48
Nick Seng25-Dec-02 14:48 
GeneralRe: How to pass a ADO object as a parameter to a function? Pin
Jason McBurney10-Jan-03 13:30
Jason McBurney10-Jan-03 13:30 
GeneralVB and pointer to function Pin
Asad raza20-Dec-02 21:37
Asad raza20-Dec-02 21:37 
GeneralRe: VB and pointer to function Pin
Ray Cassick23-Dec-02 7:07
Ray Cassick23-Dec-02 7:07 
GeneralCapture output Pin
Teir20-Dec-02 19:15
Teir20-Dec-02 19:15 
GeneralRe: Capture output Pin
Ray Cassick23-Dec-02 7:08
Ray Cassick23-Dec-02 7:08 
GeneralRe: Capture output Pin
Tatham26-Dec-02 6:22
Tatham26-Dec-02 6:22 
This is a very inefficient way to do this and will only return the complete result after the program has finished executing. Unsure | :~

Providing you've left the caves and moved into .NET, the more efficient way is to:

Dim myProc As New System.Diagnostics.Process<br />
myProc.StartInfo.UseShellExecute = False<br />
myProc.StartInfo.RedirectStandardOutput = True<br />
myProc.StartInfo.FileName = "ping"<br />
myProc.StartInfo.Arguments = "www.google.com"<br />
myProc.Start()



You have now taken control of the process and have access to the output AND input streams. You could even write your own version of command.com if you wanted. Smile | :)

The output stream is located at: myProc.StandardOutput

Im sure you'll find the rest.



Tatham Oddie (VB.NET/C#/ASP.NET/VB6/ASP/JavaScript)
tatham@e-oddie.com
+61 414 275 989
GeneralRe: Capture output Pin
Ray Cassick26-Dec-02 6:27
Ray Cassick26-Dec-02 6:27 
GeneralRe: Capture output Pin
Tatham26-Dec-02 6:34
Tatham26-Dec-02 6:34 
GeneralDirectX 9.0 Released Pin
Heath Stewart20-Dec-02 9:27
protectorHeath Stewart20-Dec-02 9:27 
GeneralActiveX DLL control help Pin
Todd Smith20-Dec-02 8:56
Todd Smith20-Dec-02 8:56 
GeneralRe: ActiveX DLL control help Pin
Ray Cassick23-Dec-02 7:10
Ray Cassick23-Dec-02 7:10 
GeneralVB6 app de-compiler Pin
Andy H19-Dec-02 23:00
Andy H19-Dec-02 23:00 
GeneralRe: VB6 app de-compiler Pin
Ray Cassick23-Dec-02 7:11
Ray Cassick23-Dec-02 7:11 
Generalsecondary thread to add data to the control Pin
kasturirawat19-Dec-02 14:26
kasturirawat19-Dec-02 14:26 
Questioninput validation?? Pin
drmzunlimited19-Dec-02 4:04
drmzunlimited19-Dec-02 4:04 
AnswerRe: input validation?? Pin
Nick Seng19-Dec-02 14:50
Nick Seng19-Dec-02 14:50 
GeneralVisual Basic DLL Pin
duvaft19-Dec-02 3:09
duvaft19-Dec-02 3:09 
GeneralRe: Visual Basic DLL Pin
Nick Seng19-Dec-02 14:44
Nick Seng19-Dec-02 14:44 
GeneralRe: Visual Basic DLL Pin
duvaft20-Dec-02 3:12
duvaft20-Dec-02 3:12 
GeneralRe: Visual Basic DLL Pin
Nick Seng22-Dec-02 14:24
Nick Seng22-Dec-02 14:24 
GeneralRe: Visual Basic DLL Pin
Ray Cassick23-Dec-02 7:15
Ray Cassick23-Dec-02 7:15 
Questionhow to control one form from another? Pin
drmzunlimited18-Dec-02 17:36
drmzunlimited18-Dec-02 17:36 
AnswerRe: how to control one form from another? Pin
CT CHANG19-Dec-02 16:35
CT CHANG19-Dec-02 16:35 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.