Results 1 to 5 of 5

Thread: [RESOLVED] [2005] ProcessStartInfo Question

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Apr 2007
    Posts
    89

    Resolved [RESOLVED] [2005] ProcessStartInfo Question

    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:
    1. Try
    2.             'Using the 'EXTRACT.EXE' to open cab files
    3.             Dim MyProcess As New ProcessStartInfo("extract.exe", "/e bla.cab)
    4.             MyProcess.CreateNoWindow = True
    5.             MyProcess.WindowStyle = ProcessWindowStyle.Hidden
    6.             Process.Start(MyProcess)
    7.         Catch ex As Exception
    8.             MessageBox.Show("Extracting Files Error", "BLA", _
    9.             MessageBoxButtons.OK, MessageBoxIcon.Error)
    10.         End Try
    Last edited by vbdc; May 1st, 2007 at 07:47 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width