中国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-10-27 01:04
47,815 topics / 349,928 posts / today 0 new / 48,289 members
DOS启动盘 & LOGO技术 (启动盘室) » Experts, please take a look at this batch file...
Printable Version  1,479 / 5
Floor1 walu Posted 2003-12-19 00:00
高级用户 Posts 201 Credits 916
In a batch file, I want one file to run and then immediately run another file, like this:
a.exe
b.exe

If I just write them one after another like this, it doesn't seem to work. What parameter should I use in between so that after running a.exe it pauses for a second or two and then runs b.exe?
Floor2 KXMD Posted 2003-12-20 00:00
新手上路 Posts 12 Credits 19
Create a .BAT file and use batch commands like IF GOTO.
Floor3 电吉入侵 Posted 2003-12-21 00:00
初级用户 Posts 377 Credits 1,480
Try this: run command /z to find out the return code after a.exe finishes, then
a.exe
if ERRORLEVEL ? b.exe
Floor4 dos时代菜鸟 Posted 2003-12-23 00:00
初级用户 Posts 216 Credits 672
It seems there are also some small reposted programs that can do timed pauses. Go take a look at New DOS Age (http://newdos.yginfo.net/).
Floor5 willsort Posted 2003-12-26 00:00
元老会员 Posts 1,512 Credits 4,432
Re walu:

Try:

a.exe
choice /c:q /t:q,1 /n
b.exe


Floor6 dos时代菜鸟 Posted 2003-12-28 00:00
初级用户 Posts 216 Credits 672
Right, choice can also be used to control the pause time. Hehe, good thing I didn't forget all of it.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023