bat批处理ant执行完毕后执行其他命令
2016-12-29 10:41
274 查看
一个bat批处理文件中,执行ant命令完毕后,其他命令或其他ant脚本不执行的问题,可以通过call命令解决。call命令说明如下:
-----------------------------------------------------------------------------------------------
Syntax
CALL [drive:][path]filename [parameters]
CALL :label [parameters]
CALL internal_cmd
Key:
pathname The batch program to run.
parameters Any command-line arguments.
:label Jump to a label in the current batch script.
internal_cmd Run an internal command, first expanding any variables in the argument.
-------------------------------------------------------------------------------------------------
根据上面call命令解释的,编写一个ant的bat脚本(ant_build.bat),然后再编写一个ant之后需要执行的bat脚本(createZip.bat),通过call进行处理:
-----------------------------------------------------------------------------------------------
Syntax
CALL [drive:][path]filename [parameters]
CALL :label [parameters]
CALL internal_cmd
Key:
pathname The batch program to run.
parameters Any command-line arguments.
:label Jump to a label in the current batch script.
internal_cmd Run an internal command, first expanding any variables in the argument.
-------------------------------------------------------------------------------------------------
根据上面call命令解释的,编写一个ant的bat脚本(ant_build.bat),然后再编写一个ant之后需要执行的bat脚本(createZip.bat),通过call进行处理:
call ant_build.bat call createZip.bat pause执行效果如下:
相关文章推荐
- dos、bat批处理延时执行命令的两种方法
- 存储过程中执行bcp命令将数据导入 并在其他文件服务器上生成log文件
- ssh登录其他机器并执行shell命令
- VC下如何调用控制台命令以及其他可执行文件
- 先执行linux的clear清屏命令,再执行其他操作
- 在VB中调用DOS命令,如何得知DOS命令是否已经执行完毕
- ant 执行 scp 命令
- ant执行命令的详细参数和Ant自带的系统属性
- 在的一个批处理(BAT)文件中成功执行多个ant命令的操作
- C#中 Oracle数据库事务(OracleTransaction),在事务中执行其他命令
- popen pclose 不等待命令执行完毕
- 【转】ant学习笔记之(ant执行命令的详细参数和Ant自带的系统属性)
- 用ANT来传送文件到远程机器并且执行远程命令
- java执行命令或调用其他exe程序的代码范例
- ant 在项目中执行dos 命令
- 使用ant的exec命令来调用 make命令执行makefile文件
- 【转】ant执行命令的详细参数和Ant自带的系统属性
- ant执行命令的详细参数和Ant自带的系统属性
- ant根据不同的os操作系统执行不同的命令
- 配置的ANT_HOME环境变量并把%ANT_HOME%\bin 加入到系统PATH环境变量后无法执行ant命令