tags:

views:

210

answers:

2

hi...i want to run vbscript file from ant script...how to do that?..

+1  A: 

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>
Eric Eijkelenboom
yeah you are right but...using "exec" i can call batch file....and in batch file i can call vbscript,but i want to call directly vbscript from ant script...could i do that?
kosal
The exec task can be used to execute any command. Please see my edits.
Eric Eijkelenboom
hey..thanks ....its running fine now........
kosal
A: 

hi.......Eric Eijkelenboom........ya its run fine now......got the solution..thanks for te help............stay in touch.....

kosal