中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-09-26 17:34
47,813 topics / 349,918 posts / today 0 new / 48,276 members
DOS批处理 & 脚本技术(批处理室) » Question about using if in a batch file
Printable Version  923 / 2
Floor1 yexingqi Posted 2007-12-28 14:41
新手上路 Posts 8 Credits 16
Hello everyone,
I want to create a batch file to automatically check all programs in the process list. If a certain process is found, it exits automatically; if a certain process is not found, then pop up a dialog box to tell the user that the process is not running. How can this be done?
Could you please help me? Thanks.
Floor2 HAT Posted 2007-12-28 15:39
版主 Posts 5,017 Credits 9,023
Floor3 yexingqi Posted 2007-12-28 15:57
新手上路 Posts 8 Credits 16
Sorry, but when I run it there is no response at all. Could it be because the text format got messed up when I COPYed it??
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023