中国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-08-07 03:30
48,040 topics / 350,125 posts / today 1 new / 48,252 members
DOS批处理 & 脚本技术(批处理室) » Desperately begging in the snow for a piece of code (timed execution code)
Printable Version  823 / 10
Floor1 papai Posted 2007-12-28 18:28
初级用户 Posts 8 Credits 26
Please explain it in more detail
I'm a newbie

How can I end a specified process every 180 seconds
And if that process runs again, this batch file will still end it!

At first the moderator's reply really made me angry
Later I realized I had wrongly blamed the moderator
Searching the forum can find quite a few
There is a VBS script though
Just no bat one

I just want to learn
But nobody seems willing to help...
T_T

[ Last edited by papai on 2007-12-28 at 06:37 PM ]
Floor2 lxmxn Posted 2007-12-28 18:30
版主 Posts 4,938 Credits 11,386
I've already seen "begging in the snow" many times, why don't you do a "sitting by the stove and begging" instead.
Floor3 mayu2004 Posted 2007-12-28 18:38
初级用户 Posts 40 Credits 109
@echo off
:a
taskkill /f /im 你要kill的进程名称 >nul
ping 127.255.255.255 -n 1 -w 180000 >nul
goto a

、you can also use other delay statements
ping uses a bit of memory, though not very much

Use it together with a vbs script to run hidden
Floor4 papai Posted 2007-12-28 18:46
初级用户 Posts 8 Credits 26
Mm
Learned a bit more again
I'm just a beginner newbie
I'm relying on the seniors' support
Floor5 HAT Posted 2007-12-28 21:03
版主 Posts 5,017 Credits 9,023
Floor6 hanhdf Posted 2007-12-29 03:30
新手上路 Posts 5 Credits 10
I can't understand this at all
Floor7 papai Posted 2007-12-29 10:05
初级用户 Posts 8 Credits 26
I can't understand the code in post #5

Is there a thread specifically introducing the parameters?
Floor8 lxmxn Posted 2007-12-29 12:07
版主 Posts 4,938 Credits 11,386
Originally posted by papai at 2007-12-29 10:05:
I can't understand the code in post #5

Is there a thread specifically introducing the parameters?


schtasks /?

If you don't understand a command, just run "<CommandName> /?" to view the help.
Floor9 nomyself Posted 2007-12-29 14:30
新手上路 Posts 4 Credits 10
;):coolC:\Documents and Settings\Administrator>schtasks /?
'schtasks' is not recognized as an internal or external command,
operable program or batch file.:cool:
Floor10 HAT Posted 2007-12-29 14:42
版主 Posts 5,017 Credits 9,023
Originally posted by nomyself at 2007-12-29 02:30 PM:
;):coolC:\Documents and Settings\Administrator>schtasks /?
'schtasks' is not recognized as an internal or external command,
operable program or batch file.:cool:

Which version of the operating system are you using?
Floor11 zh159 Posted 2007-12-29 16:21
金牌会员 Posts 1,467 Credits 3,687
Probably a stripped-down system
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023