I have two batch files. The first one is to download files from SFTP. The second is to manipulate some local files. Since I have to wait until the first one is finished, how to hold the program in VBA so the batch files can be executed one by one?
Right now I am using
Call Shell("Bat1.bat")
Call Shell("Bat2.bat")
However, two batch files will be executed at the same time. Bat2.bat
will not wait Bat1.bat
.
Thanks