I have a line of code:
objShell.ShellExecute strApp, strCommand, "", "RunAs", 1
strApp is either cscript.exe and wscript.exe
strCommand is the path of a .wsh file that I create to run a second script.
I need my main script to run this command, and then WAIT for the strApp to finish before continuing.
Anyone know how that can be accomplished?
Many thanks!
objShell.ShellExecute strApp, strCommand, "", "RunAs", 1
strApp is either cscript.exe and wscript.exe
strCommand is the path of a .wsh file that I create to run a second script.
I need my main script to run this command, and then WAIT for the strApp to finish before continuing.
Anyone know how that can be accomplished?
Many thanks!