![]() |
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-27 01:26 |
47,812 topics / 349,912 posts / today 2 new / 48,264 members |
| 其它操作系统综合讨论区 » How to make START wait for another command to finish before continuing |
| Printable Version 1,253 / 5 |
| Floor1 HUNRYBECKY | Posted 2006-12-30 23:09 |
| 银牌会员 Posts 442 Credits 1,179 | |
|
When start launches another program, adding the /W parameter works, but when calling an internal command it stops working? Why is that?
I looked through many earlier posts and none mentioned START delaying command execution, only delaying when calling other programs. In the code above, how can I make START wait after executing shutdown -s -t 200 until the 200S is over, then continue with shutdown -a and wait until that is finished, then continue with START /W XCOPY /S/C/H/R/Y rpl\*.* d:\, and after the copy is done then execute shutdown -s -t 100 Explanation: although it is possible to put each internal command into a BAT file to achieve this, if there are many commands it becomes very troublesome. How can this problem be solved? Is START really powerless when it comes to internal commands? [ Last edited by HUNRYBECKY on 2006-12-30 at 11:15 PM |
|
| Floor2 htysm | Posted 2007-01-13 00:27 |
| 高级用户 Posts 415 Credits 866 | |
|
All the experts are gone. Heh.
|
|
| Floor3 vkill | Posted 2007-01-13 06:04 |
| 金牌会员 Posts 1,744 Credits 4,103 From 甘肃.临泽 | |
| Floor4 gne3 | Posted 2007-02-25 03:07 |
| 高级用户 Posts 252 Credits 526 | |
|
Don't know
|
|
| Floor5 slore | Posted 2007-02-27 07:37 |
| 铂金会员 Posts 2,478 Credits 5,212 | |
|
After shutdown -s -t 200, wait for the 200S to finish? Then it will just shut down directly... it won't wait for your -a
|
|
| Floor6 Kinglion | Posted 2007-02-27 07:43 |
| 铂金会员 Posts 1,924 Credits 5,798 From 金獅電腦軟體工作室 | |
|
You can do it with a VBS script: first set the program to exit automatically when the download is complete, then detect that EMULE is no longer running and shut down the system.
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |