![]() |
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-09 20:03 |
47,811 topics / 349,896 posts / today 1 new / 48,254 members |
| DOS批处理 & 脚本技术(批处理室) » How to write the DOS timing command (urgent waiting) |
| Printable Version 3,492 / 25 |
| Floor1 ednykissyou | Posted 2007-06-27 09:44 |
| 初级用户 Posts 88 Credits 182 | |
|
I want to use DOS (preferably batch processing) to automatically close a program after half an hour of running, but I don't know how to implement the countdown of these half an hour with DOS commands (I don't want to use scheduled tasks). Which expert knows please give guidance, preferably with an example~~~
|
|
| Floor2 liumingqing | Posted 2007-06-27 09:57 |
| 初级用户 Posts 73 Credits 136 | |
|
I also really want to know. I think it should be using batch processing, obtaining the system time, and then judging conditions. But my batch processing knowledge is too poor.
|
|
| Floor3 Climbing | Posted 2007-06-27 10:19 |
| 铂金会员 Posts 2,753 Credits 6,962 From 河北保定 | |
|
Just use a command-line program like sleep or wait to wait for half an hour.
|
|
| Floor4 jinyuwangbbb | Posted 2007-06-27 22:50 |
| 初级用户 Posts 12 Credits 23 | |
|
Climbing
Don't I give everyone an example? |
|
| Floor5 lxmxn | Posted 2007-06-27 23:05 |
| 版主 Posts 4,938 Credits 11,386 | |
|
Upload a sleep tool that serves the purpose of delaying.
The usage is very simple: sleep 5s means delay for 5 seconds (Seconds) sleep 5m means delay for 5 minutes (Minutes) sleep 5h means delay for 5 hours (Hours) sleep 5d means delay for 5 days (Days) Attachments sleep.rar (7.58 KiB) |
|
| Floor6 ednykissyou | Posted 2007-06-28 12:24 |
| 初级用户 Posts 88 Credits 182 | |
| Floor7 wloveqing | Posted 2007-06-28 13:32 |
| 新手上路 Posts 1 Credits 2 | |
|
Good stuff.. Collect.
|
|
| Floor8 qq82015930 | Posted 2007-09-27 01:42 |
| 中级用户 Posts 109 Credits 235 | |
|
Good stuff.. Collect.
|
|
| Floor9 buddiyar | Posted 2007-10-03 12:23 |
| 初级用户 Posts 75 Credits 160 | |
| Floor10 koala | Posted 2007-10-03 16:53 |
| 初级用户 Posts 105 Credits 199 From 江苏 | |
|
First method:
......... ......... ......... ..(The above code is omitted)..... ping /n 1799 127.1>nul 2>nul Second method: :: Sleep.bat - Sleep/Delay/Wait n seconds :: Herbert Kleebauer(Germany) - 2005/05/29 :: Modified by Will Sort - 2005/06/02 @echo off echo q | debug>nul echo Bj@jzh`0X-`/PPPPPPa(DE(DM(DO(Dh(Ls(Lu(LX(LeZRR]EEEUYRX2Dx=>sleep.com echo 0DxFP,0Xx.t0P,=XtGsB4o@$?PIyU WwX0GwUY Wv;ovBX2Gv0ExGIuht6>>sleep.com echo T}{z~~@GwkBG@OEKcUt`~}@MqqBsy?seHB~_Phxr?@zAB`LrPEyoDt@Cj?>>sleep.com echo pky_jN@QEKpEt@ij?jySjN@REKpEt@jj?jyGjN@SEKkjtlGuNw?p@pjirz>>sleep.com echo LFvAURQ?OYLTQ@@?~QCoOL~RDU@?aU?@{QOq?@}IKuNWpe~FpeQFwH?Vkk>>sleep.com echo _GSqoCvH{OjeOSeIQRmA@KnEFB?p??mcjNne~B?M??QhetLBgBPHexh@e=>>sleep.com echo EsOgwTLbLK?sFU`?LDOD@@K@xO?SUudA?_FKJ@N?KD@?UA??O}HCQOQ??R>>sleep.com echo _OQOL?CLA?CEU?_FU?UAQ?UBD?LOC?ORO?UOL?UOD?OOI?UgL?LOR@YUO?>>sleep.com echo dsmSQswDOR Last edited by koala on 2007-10-3 at 05:01 PM ] |
|
| Floor11 Hawk911 | Posted 2007-10-04 00:22 |
| 初级用户 Posts 67 Credits 116 | |
|
Cultivate the good habit of respecting others' labor!
|
|
| Floor12 cjdsandufo | Posted 2007-10-04 23:06 |
| 新手上路 Posts 3 Credits 6 | |
|
Admiring, admiring, really a master!
|
|
| Floor13 kgdetg1127 | Posted 2007-10-05 14:24 |
| 初级用户 Posts 89 Credits 158 | |
|
Collected..!!!
|
|
| Floor14 hxwxyz | Posted 2007-10-05 18:47 |
| 中级用户 Posts 123 Credits 245 | |
| Floor15 lianda81 | Posted 2007-11-19 05:08 |
| 新手上路 Posts 1 Credits 2 | |
| 1 2 Next |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |