开发者

How can I execute a VBScript file from Ant script?

开发者 https://www.devze.com 2022-12-24 10:46 出处:网络
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.

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

精彩评论

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