start启动其他程序时加/W参数有效,调用内部命令时却失效了?这是为什么?
我查看了以前的很多帖子都没有提到过START调用命令的延迟,只有调用其他程序的延迟。
@echo off
rem 为了解决使用EMULE下载后自动关机会损坏下载的问题,编写此脚本。思路如下:
START /W shutdown -s -t 200
START /W shutdown -a
START XCOPY /S/C/H/R/Y rpl\*.* d:\
shutdown -s -t 100
@echo on
上面代码中如何让START在执行shutdown -s -t 200后等待200S完成后继续执行shutdown -a再等待完成后在继续执行START /W XCOPY /S/C/H/R/Y rpl\*.* d:\,复制完成后再执行shutdown -s -t 100
说明:虽然可以把每个内部命令写一个BAT文件来实现,但是命令很多就很麻烦,如何解决这个问题?是不是START对内部命令真的无能为力?
Last edited by HUNRYBECKY on 2006-12-30 at 11:55 PM ]
Why does the /W parameter of the start command work when starting other programs but not when calling internal commands? I have checked many previous posts and none mentioned the delay of START when calling commands, only when calling other programs.
@echo off
rem To solve the problem that the download is damaged when the computer automatically shuts down after using EMULE to download, this script is written. The idea is as follows:
START /W shutdown -s -t 200
START /W shutdown -a
START XCOPY /S/C/H/R/Y rpl\*.* d:\
shutdown -s -t 100
@echo on
How to make START wait for 200 seconds to complete after executing shutdown -s -t 200 in the above code, then continue to execute shutdown -a and wait for completion, then continue to execute START /W XCOPY /S/C/H/R/Y rpl\*.* d:\, and after the copy is completed, execute shutdown -s -t 100.
Explanation: Although each internal command can be written into a BAT file to achieve, but it is very troublesome when there are many commands. How to solve this problem? Is it really impossible for START to handle internal commands?
Last edited by HUNRYBECKY on 2006-12-30 at 11:55 PM ]