I use WScript to automate some tasks using WScript.Shell to call external programs.
However, now he does not wait for the completion of the external program and instead switches. This causes problems because I have some tasks depending on others completing first.
I use code like:
ZipCommand = "7za.exe a -r -y " & ZipDest & BuildLabel & ".zip " & buildSourceDir Set wshShell = WScript.CreateObject("Wscript.Shell") wshShell.run ZipCommand
Is there any way to do this so that it locks until the shell executable returns?
shell vbscript wsh
Flyswat
source share