I have a batch script with multiple commands running sequentially.There is one particular command which takes longer occassionaly(sometimes even stuck for hours). I want to skip this command if its execution is longer than 10 minutes, and continue with the batch job programmatically. Right now, I am monitoring the command and manually feed in Ctrl+C and press "N" when asked ofr "Terminate batch job?". Please help me as how to identify whether the particular command is stuck and kill it and proceed with the rest of the batch job. Any leads will be helpful, and I am very new to windows batch scripting.
Thank you.