China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-27 02:23
中国DOS联盟论坛 » 其它操作系统综合讨论区 » How to make START wait for another command to finish before continuing View 1,254 Replies 5
Original Poster Posted 2006-12-30 23:09 ·  中国 广东 东莞 电信
银牌会员
★★★
Credits 1,179
Posts 442
Joined 2006-09-09 22:47
19-year member
UID 62249
Status Offline
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.

@echo off
rem To solve the problem that using EMULE to download and then auto-shutdown may damage the download, I wrote this script. The idea is as follows:
START /W shutdown -s -t 200
START /W shutdown -a
START /W XCOPY /S/C/H/R/Y rpl\*.* d:\
shutdown -s -t 100
@echo on



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
Floor 2 Posted 2007-01-13 00:27 ·  中国 安徽 芜湖 电信
高级用户
★★★
Credits 866
Posts 415
Joined 2005-12-04 11:19
20-year member
UID 46459
Status Offline
All the experts are gone. Heh.
Floor 3 Posted 2007-01-13 06:04 ·  中国 甘肃 甘南藏族自治州 合作市 电信
金牌会员
★★★★
Credits 4,103
Posts 1,744
Joined 2006-01-20 13:00
20-year member
UID 49241
Gender Male
From 甘肃.临泽
Status Offline
Floor 4 Posted 2007-02-25 03:07 ·  中国 浙江 台州 温岭市 电信
高级用户
★★
DOS学徒
Credits 526
Posts 252
Joined 2007-02-12 05:35
19-year member
UID 79286
Gender Male
Status Offline
Don't know
Floor 5 Posted 2007-02-27 07:37 ·  中国 陕西 西安 电信
铂金会员
★★★★
Credits 5,212
Posts 2,478
Joined 2007-02-08 23:39
19-year member
UID 79003
Gender Male
Status Offline
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
Floor 6 Posted 2007-02-27 07:43 ·  中国 辽宁 朝阳 联通
铂金会员
★★★★
痴迷DOS者
Credits 5,798
Posts 1,924
Joined 2003-06-20 00:00
23-year member
UID 5583
Gender Male
From 金獅電腦軟體工作室
Status Offline
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.
熟能生巧,巧能生精,一艺不精,终生无成,精亦求精,始有所成,臻于完美,永无止境!
金狮電腦軟體工作室愿竭诚为您服务!
QQ群:8393170(定期清理不发言者)
个人网站:http://www.520269.cn
电子邮件:doujiehui@vip.qq.com
微信公众号: doujiehui
Forum Jump: