P
PAPutzback
My code
Dim Cmd As New Process
Dim CmdHandle As String
Dim dirResults As String
Cmd.StartInfo.FileName = "c:\working\gpg\gpg.exe"
Cmd.StartInfo.Arguments = "--yes --output :\working\inbound\test.txt
--decrypt c:\working\inbound\anstest.gpg"
Cmd.StartInfo.RedirectStandardInput = True
Cmd.StartInfo.RedirectStandardOutput = True
Cmd.StartInfo.UseShellExecute = False
Cmd.Start()
MsgBox("the name of the process", MsgBoxStyle.Information,
Cmd.ProcessName)
dirResults = Cmd.StandardOutput.ReadToEnd
MsgBox(dirResults)
The window pops up and is full of text but the dirResults string is
nothing.
Do I have to have a seperate thread to read the output?
Thanks,
Phil
Dim Cmd As New Process
Dim CmdHandle As String
Dim dirResults As String
Cmd.StartInfo.FileName = "c:\working\gpg\gpg.exe"
Cmd.StartInfo.Arguments = "--yes --output :\working\inbound\test.txt
--decrypt c:\working\inbound\anstest.gpg"
Cmd.StartInfo.RedirectStandardInput = True
Cmd.StartInfo.RedirectStandardOutput = True
Cmd.StartInfo.UseShellExecute = False
Cmd.Start()
MsgBox("the name of the process", MsgBoxStyle.Information,
Cmd.ProcessName)
dirResults = Cmd.StandardOutput.ReadToEnd
MsgBox(dirResults)
The window pops up and is full of text but the dirResults string is
nothing.
Do I have to have a seperate thread to read the output?
Thanks,
Phil