I have a cmd execution takes too long time, I'd like to set a time out for it. After it's time out, then I can go to execute in next line. Is it possible? My cmd is like this.
example1.exe /e:dosomething.
example2.exe /e:dosomething.
I'd like to set time out for example1.exe, then I could go to execute example2.exe Any method?
Adapted from a previous answer to handle the cases of killing or keep running the process on timeout