James,
Here beneath a simple sample, however did you know that there was a special
newsgroup for VB.net language
microsoft.public.dotnet.languages.vb
\\\
Public sub myStart() as String
Dim p As New Process
dim pi as new processstartinfo
pi.UseShellExecute = False
pi.RedirectStandardOutput = True
pi.Arguments = myargumentstring
pi.WorkingDirectory = myworkdirectorystring
pi..FileName =C:\myprogram
pi.startinfo = pi
p.Start()
Dim sr As IO.StreamReader = p.StandardOutput
Dim sb As New System.Text.StringBuilder("")
Dim input As Integer = sr.Read
Do Until input = -1
sb.Append(ChrW(input))
input = sr.Read
Loop
Return SB.tostring
///
I hope this helps?
Cor
"James D. Marshall" <cr**********@hotmail.com>
Please point me to some articles that explain how to execute a dos type
command and retrieve its output for processing.
Thanks.