I want to run a VBScript file from an Ant script. How can I开发者_如何学运维 do that?
Have a look at the exec task. It allows you to execute a system command from your Ant script.
EDIT: An example could be:
<target name="RunVbScript">
<exec executable="cscript">
<arg value="MyScript.vbs"/>
<arg value="argument 1" />
<arg value="argument 2" />
<arg value="argument n" />
</exec>
</target>
精彩评论