首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 开发语言 > VB >

VBA执行带有ant命令的bat文件解决办法

2012-01-18 
VBA执行带有ant命令的bat文件”start_ant.bat“:ant”VBA“:shell ”d:\start_ant.bat“上面的bat文件在windows

VBA执行带有ant命令的bat文件
”start_ant.bat“:
ant

”VBA“:
shell ”d:\start_ant.bat“

上面的bat文件在windows下双击执行可以正常运行。
但是在VBA中使用shell调用就不行了。
请大虾赐教!

[解决办法]
友情帮顶~~~~~
[解决办法]
下面这个连接里有这么句话:
“如果没有加pause的话,ant命令不会运行”

也就是说,你把bat改成:

.bat:
ant
pause

热点排行