L
leochen76
Hi,
I have a procedure that executes an external vbscript file using
ShellExecute as listed below.
Immediately after that, I will read whatever in a text file which
is the output of that vbscript file.
The problem is that the vbscript file is executed asynchronously,
and I always end up opening an empty text file because the vbscript
file is still running. How can I wait until the vbscript is done?
Thanks a lot.
Private Declare Function ShellExecute Lib "shell32.dll" Alias
"ShellExecuteA" .....
I have a procedure that executes an external vbscript file using
ShellExecute as listed below.
Immediately after that, I will read whatever in a text file which
is the output of that vbscript file.
The problem is that the vbscript file is executed asynchronously,
and I always end up opening an empty text file because the vbscript
file is still running. How can I wait until the vbscript is done?
Thanks a lot.
Private Declare Function ShellExecute Lib "shell32.dll" Alias
"ShellExecuteA" .....