是该call WaitForSingleObject
好像就ok了.

解决方案 »

  1.   

    Private Declare Function ShellExecute Lib "shell32.dll" Alias "ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, ByVal lpFile As String, ByVal lpParameters As String, ByVal lpDirectory As String, ByVal nShowCmd As Long) As LongConst SW_SHOWNORMAL = 1Private Sub Command1_Click()
        
        ShellExecute Form1.hwnd, "Open", strUploadFile, "", "", SW_SHOWNORMALEnd Sub