topher2798
Technical User
I'm using VB6 and I have a sub procedure that calls an external application. I need my VB app to automatically close AFTER the external application is finished and not before. How would I go about doing this?
Here is what I am working with:
Private Sub Command1_Click()
Shell App.Path & ".\bin\snark.exe"
End
End Sub
The problem with this is that it executes the snark.exe and then continues down to the next line and ends the VB app. I need it to wait until snark.exe is completly finished running before it runs the next line of code.
Any help on this one?
Here is what I am working with:
Private Sub Command1_Click()
Shell App.Path & ".\bin\snark.exe"
End
End Sub
The problem with this is that it executes the snark.exe and then continues down to the next line and ends the VB app. I need it to wait until snark.exe is completly finished running before it runs the next line of code.
Any help on this one?