开发者

Terminate a batch file w/ another batch

Does anyone knows how to kill a batch file w/in another batch file?

Scenario: batch file #1 is running (or looping) in the background. While #1 is on the background, a separate (not w/in batch fil开发者_StackOverflowe #1) batch file is activated manually with a code inside killing batch file #1.

It's like the opposite of call (I guess).

Is this possible and how?


Taskkill Command can end a process

Tasklist Command will list out all the process

Also you may use find command to find the process that wanted to kill


You can kill a batch file from another batch by querying the window title. See this blog for more info: http://dotnetcrunch.wordpress.com/2014/04/24/kill-batch-file-script/

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜