2 years ago
#59935
lanyusea
cmd batch - How to set the "Taskkill" command blocking or non-blocking in Windows command line?
We have a group of machines running scripts. Most of our machines fail to finish the task after last weekend.
After comparing the working machines and non-workings machines we find out something weired that the behavior of Taskkill
command has changed from non-blocking command into a blocking one on broken machines.
For example, to kill a process:
taskkill /im notexist.exe /f
, if the process 'notexist.exe' does not exist, command will return immediatelly on working machines but keep a 5s timeout before return on broken machines.
They share the same harware and os version and the 'taskkill.exe' version.
Is there anything in the registry matters? How could I make the behavior consistently?
windows
batch-file
cmd
taskkill
0 Answers
Your Answer