开发者

How can I execute a VBScript file from Ant script?

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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜