I understand how to use ShellExecute in VBA (for my Outlook macros) but I\'m looking to be able to use ShellExecuteEx to wait for the executed program in my script. Does an
If I am not mistaken, you need to set the SEE_MASK_NOASYNC bit in the fMask parameter.
Const SEE_MASK_NOASYNC As Long = &h0& With Prop .fMask = &HC Or SEE_MASK_NOASYNC End With
Edit
Hmmm, I'm having trouble getting it to work too. Have you considered just GetFileInformationByHandle?