中国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-17 03:40
47,813 topics / 349,903 posts / today 0 new / 48,259 members
DOS疑难解答 & 问题讨论 (解答室) » How to implement delay in batch processing
Printable Version  1,353 / 4
Floor1 TJ88 Posted 2004-12-26 00:00
初级用户 Posts 7 Credits 118
When writing a batch file, the process is to download a file from FTP and then decompress it to a certain folder. But FTP download takes time. How to delay? Except for PAUSE.
Floor2 TJ88 Posted 2004-12-26 00:00
初级用户 Posts 7 Credits 118
Maybe you can use IF EXIST instead of delay.
Floor3 wolfkin Posted 2004-12-26 00:00
初级用户 Posts 18 Credits 148
The simplest delay: ping -n 5 127.0.0.1 to achieve a 5-second delay, and you can set the delay time yourself
Floor4 Climbing Posted 2004-12-27 00:00
铂金会员 Posts 2,753 Credits 6,962 From 河北保定
The delay doesn't seem to solve the problem of the original poster. How do you know how much delay time is needed? The characteristic of batch processing is that each command is executed in sequence. The next command won't be executed before the previous one finishes. If it's related to a specific command, you can use start /wait to start a certain command (wait for it to finish executing).
Floor5 JonePeng Posted 2004-12-27 00:00
金牌会员 Posts 1,883 Credits 4,562 From 广东广州
I'm afraid there's no command for delay.
But you can use a third-party tool, for example, wait.com on the MSDOS 7.1 boot disk.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023