Hi All,
English is not native.
I using the following code to extract files in console windows which is hidden.
I want to make this process "wait" and not continue with the next line of my application until this process has been finished and then execute the next line of code.
how can I do that?
vb Code:
Try 'Using the 'EXTRACT.EXE' to open cab files Dim MyProcess As New ProcessStartInfo("extract.exe", "/e bla.cab) MyProcess.CreateNoWindow = True MyProcess.WindowStyle = ProcessWindowStyle.Hidden Process.Start(MyProcess) Catch ex As Exception MessageBox.Show("Extracting Files Error", "BLA", _ MessageBoxButtons.OK, MessageBoxIcon.Error) End Try




Reply With Quote