【发布时间】:2012-01-31 10:16:35
【问题描述】:
我想复制一些文件到不同的U盘,想用START打开几个控制台,如下:
start copy a.txt h:
start copy a.txt i:
start copy a.txt j:
但是每次我运行批处理文件时,有 3 个控制台没有退出。 如何使用 3 个批处理文件和“调用”命令来实现此退出功能 WITHOUT:
copy.bat:
call a.bat
call b.bat
call c.bat
exit
和三个调用的批处理文件为:
a.bat:
start copy a.txt h:
exit
b.bat:
start copy a.txt i:
exit
c.bat:
start copy a.txt j:
exit
我已经尝试过了,但它不起作用:
start copy a.txt h: && exit
start copy a.txt i: && exit
start copy a.txt j: && exit
【问题讨论】:
-
编辑了我的答案,这个有效:)
-
只是出于好奇;为什么不使用
call?
标签: batch-file exit