例:我要调用exe文件,所写代码如下:
echo off
cd "C:\test"
start Batch.exe XXXABC
start Batch.exe YYYABC
start Batch.exe ZZZABC
希望高手指点!
6 个解决方案
#1
直接运行exe就可以了。
ping 127.0.0.1
ping 127.0.0.2
...
ping 127.0.0.1
ping 127.0.0.2
...
#2
把start去掉
#3
[code=BatchFile]echo off
cd "C:\test"
Batch.exe XXXABC
Batch.exe YYYABC
Batch.exe ZZZABC [/code]
cd "C:\test"
Batch.exe XXXABC
Batch.exe YYYABC
Batch.exe ZZZABC [/code]
#4
[code=BatchFile]
echo off
cd "C:\test"
call Batch.exe XXXABC
call Batch.exe YYYABC
call Batch.exe ZZZABC [/code]
echo off
cd "C:\test"
call Batch.exe XXXABC
call Batch.exe YYYABC
call Batch.exe ZZZABC [/code]
#5
谢谢!
#6
打倒蛋贴!
#1
直接运行exe就可以了。
ping 127.0.0.1
ping 127.0.0.2
...
ping 127.0.0.1
ping 127.0.0.2
...
#2
把start去掉
#3
[code=BatchFile]echo off
cd "C:\test"
Batch.exe XXXABC
Batch.exe YYYABC
Batch.exe ZZZABC [/code]
cd "C:\test"
Batch.exe XXXABC
Batch.exe YYYABC
Batch.exe ZZZABC [/code]
#4
[code=BatchFile]
echo off
cd "C:\test"
call Batch.exe XXXABC
call Batch.exe YYYABC
call Batch.exe ZZZABC [/code]
echo off
cd "C:\test"
call Batch.exe XXXABC
call Batch.exe YYYABC
call Batch.exe ZZZABC [/code]
#5
谢谢!
#6
打倒蛋贴!