zackmark29
Active member
- Joined
- Apr 21, 2020
- Messages
- 28
- Programming Experience
- Beginner
Hi everyone
I just wanna put new feature in my personal tool
Can you give me idea how I can sync progressbar to cmd output while still downloading
This is the code I'm using for cmd output
I just wanna put new feature in my personal tool
Can you give me idea how I can sync progressbar to cmd output while still downloading

This is the code I'm using for cmd output
VB.NET:
Private Sub CMDOutput(StartFileName As String, StartFileArg As String)
Dim process As Process = New Process()
process.StartInfo.FileName = StartFileName
process.StartInfo.Arguments = StartFileArg
process.StartInfo.CreateNoWindow = True
process.StartInfo.UseShellExecute = False
process.StartInfo.RedirectStandardInput = True
process.StartInfo.RedirectStandardOutput = True
process.StartInfo.RedirectStandardError = True
AddHandler process.OutputDataReceived, AddressOf Me.p_OutputDataReceived
AddHandler process.ErrorDataReceived, AddressOf Me.p_ErrorDataReceived
process.EnableRaisingEvents = True
AddHandler process.Exited, New EventHandler(AddressOf Me.CmdProcess_Exited)
process.Start()
process.BeginOutputReadLine()
process.BeginErrorReadLine()
End Sub