We recently updated our
Terms and Conditions for TechRepublic Premium.
By clicking continue, you agree to these updated terms.
Invalid email/username and password combination supplied.
An email has been sent to you with instructions on how to reset your password.
Welcome to TechRepublic!
All fields are required. Username must be unique. Password must be a minimum of 6 characters and have any 3 of the 4 items: a number (0 through 9), a special character (such as !, $, #, %), an uppercase character (A through Z) or a lowercase (a through z) character (no spaces).
I Have a tiny prog just to test with path to an exe file and an avi file. I use shell and wait. The code is exactly the same but the avi gives error Invalid Procedure call or argument. Code as follows: Works for the exe file not the avi file.
Private Sub ShellAndWait()
Dim ProcessId As Long
Dim ProcessHandle As Long
Const Access As Long = &H100000
ProcessId = Shell(gstrProgram, vbNormalFocus)
ProcessHandle = OpenProcess(Access, False, ProcessId)
If ProcessHandle <> 0 Then
Loop Until ProcessHandle = 0