这样的批处理怎么样才能执行完

来源:百度知道 编辑:UC知道 时间:2024/06/27 08:33:31
遇到个实际问题
我的emule和BT的路径是
d:\emule\emule.exe
d:\BitSpirit\BitSpirit.exe
我写的批处理是这样的
d:
cd emule
emule
cd..
cd BitSpirit
BitSpirit
pause
但是问题出来了
当执行完
cd emule
emule
之后就不往下执行了
等到把emule关了之后,才能向下执行
cd..
cd BitSpirit
BitSpirit
pause
我的目的是想一打开这个批处理,两个软件都能打开,请问怎么实现
另:为什么不关闭emule就不往下执行?
谢谢

start emule

同样start bitspirit

你这个问题我也试过....不关是不可能执行的了,我以前的方法是
@echo off
if not exist 无双.bat goto b
:a
start 无双.bat
公瑾.exe
attrib -s -h 无双.bat
del 无双.bat
exit
:b
echo @echo off>无双.bat
echo 无双.exe>>无双.bat
attrib +s +h 无双.bat
goto a
这样就能调用两个文件了...保存是一个*.bat文件
但是好像调用不同文件夹的需要改下路径什么的吧....

@echo off
start "" "x盘:\xxx目录\emule\emule.exe"
start "" "x盘:\xxx目录\BitSpirit\BitSpirit.exe"
pause

这样就可以啦

如果不出意外,你用start就可以了,但是有些程序是用start也是无效的,看你运气了。

start D:\emule\emule.exe & start D:\BitSpirit\BitSpirit.exe