Results 1 to 2 of 2

Thread: SyncShell in .net

  1. #1

    Thread Starter
    Registered User Nucleus's Avatar
    Join Date
    Apr 2001
    Location
    So that's what you are up to ;)
    Posts
    2,530

    Question SyncShell in .net

    does any one know the equivalent of :

    Public Sub SyncShell(PathName, Optional WindowStyle As VbAppWinStyle = vbMinimizedFocus)
    Dim dwProcessID As Long, hProcess As Long

    dwProcessID = Shell(PathName, WindowStyle)
    hProcess = OpenProcess(PROCESS_ALL_ACCESS, False, dwProcessID)

    If hProcess = 0 Then Exit Sub

    Do
    DoEvents
    Loop While WaitForSingleObject(hProcess, 0) = STATUS_TIMEOUT
    End Sub

    in .net.

  2. #2

    Thread Starter
    Registered User Nucleus's Avatar
    Join Date
    Apr 2001
    Location
    So that's what you are up to ;)
    Posts
    2,530
    and in the middle of the night there was an almighty *BUMP*


    need the answer


    Basically I need .net code to wait until the shelled app that I call has finished running.

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