kosal
kosal

Reputation: 19

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?

Upvotes: 0

Views: 2784

Answers (1)

Eric Eijkelenboom
Eric Eijkelenboom

Reputation: 7021

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>

Upvotes: 3

Related Questions