I need to detect the running of a process every 30 seconds. If it doesn't exist, the computer restarts, and this batch processing runs the detection every 30 seconds.
:loop
tasklist|findstr /i "explorer.exe" ||shutdown -s -t 50
ping 127.1 -n 600 >nul 2>nul
goto loop
I saw this written in the previous post, but when I use it, it must be clicked on this batch processing to work. I hope this batch processing can run by itself every 30 seconds.
I have also read many posts written by everyone in this regard, but when I use it, it doesn't seem to work. I'm a layman and don't understand batch processing. I hope everyone can write a complete batch processing for me to learn. Thank you!
─────────────────── Moderation Record ────────────────────
Performed by: lxmxn
Description: Because the title was not modified within 3 days after being prompted to modify the title, 2 points were deducted, and the title was modified by myself.
─────────────────── Moderation Record ────────────────────
[ Last edited by lxmxn on 2007-6-24 at 11:45 PM ]
:loop
tasklist|findstr /i "explorer.exe" ||shutdown -s -t 50
ping 127.1 -n 600 >nul 2>nul
goto loop
I saw this written in the previous post, but when I use it, it must be clicked on this batch processing to work. I hope this batch processing can run by itself every 30 seconds.
I have also read many posts written by everyone in this regard, but when I use it, it doesn't seem to work. I'm a layman and don't understand batch processing. I hope everyone can write a complete batch processing for me to learn. Thank you!
─────────────────── Moderation Record ────────────────────
Performed by: lxmxn
Description: Because the title was not modified within 3 days after being prompted to modify the title, 2 points were deducted, and the title was modified by myself.
─────────────────── Moderation Record ────────────────────
[ Last edited by lxmxn on 2007-6-24 at 11:45 PM ]
Recent Ratings for This Post
( 1 in total)
Click for details
| Rater | Score | Time |
|---|---|---|
| lxmxn | -2 | 2007-06-24 23:38 |
