VBA执行带有ant命令的bat文件
”start_ant.bat“:
ant
”VBA“:
shell ”d:\start_ant.bat“
上面的bat文件在windows下双击执行可以正常运行。
但是在VBA中使用shell调用就不行了。
请大虾赐教!
[解决办法]
友情帮顶~~~~~
[解决办法]
下面这个连接里有这么句话:
“如果没有加pause的话,ant命令不会运行”
也就是说,你把bat改成:
发布时间: 2012-01-18 00:23:26 作者: rapoo
VBA执行带有ant命令的bat文件
”start_ant.bat“:
ant
”VBA“:
shell ”d:\start_ant.bat“
上面的bat文件在windows下双击执行可以正常运行。
但是在VBA中使用shell调用就不行了。
请大虾赐教!
[解决办法]
友情帮顶~~~~~
[解决办法]
下面这个连接里有这么句话:
“如果没有加pause的话,ant命令不会运行”
也就是说,你把bat改成: