开发者

How do I periodically check if a program is running in Windows? [duplicate]

This question already has answers here: 开发者_开发问答 Closed 11 years ago.

Possible Duplicate:

How to check if a process is running via a batch script

I've heard of batch scripts, but couldn't find any official documentation on it. Is this possible with batch scripts?

Also, can it send emails?

EDIT: Basically I need to check if a certain application is running, and send an email if it isn't as a notification. Can this be done via batch scripts?


You can use the PsList from Sysinternals to find out what is there:

http://technet.microsoft.com/en-us/sysinternals/bb896682

and then kill it with PsKill:

http://technet.microsoft.com/en-us/sysinternals/bb896683
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜