1
I need to run a bat file with the following content:
ECHO "Mensagem 1"
copy xxx yyy
ECHO "Mensagem 2"
outro.bat param1
ECHO "Mensagem 3"
copy zzz ooo
However when it runs the other.bat my script does not wait for it to finish to run message 3 and the copy command.
But I don’t know how long it will take to run the other.bat varies from 30 seconds to 15 minutes.
– Luiz Lanza
Doesn’t putting the team on a maximum of 15 minutes help you? timeout /t 900
– luanfvieira
Not a good option because it will spend unnecessary time
– Luiz Lanza