I use WSH mainly for WMI scripting. It's the best way to get info from
remote Windows machines.

-----Original Message-----
From: Steve Loughran [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, January 31, 2006 12:17 PM
To: Ant Users List
Subject: Re: Problems with exec task


Dick, Brian E. wrote:
> -- hello there.vbs
> strArg   = ""
> strDelim = ""
> 
> for each objItem in WScript.Arguments
>    strArg   = strArg & strDelim & objItem
>    strDelim = " "
> next
> 
> WScript.echo "hello there, " & strArg
> 
> -- cscript.xml
> <project name="cscript" default="hello">
> 
>    <target name="hello">
>       <exec taskname="cscript"
>             executable="cscript.exe"
>       >
>          <arg file="hello there.vbs"/>
>          <arg value="//Nologo"/>
> 
>          <arg value="Rhino"/>
>       </exec>
>    </target>
> 
> </project>
> 
> -- example run
> C:\temp\ant -f cscript.xml
> Buildfile: cscript.xml
> 
> hello:
>   [cscript] hello there, Rhino
> 

You know, I'd ignored WSF for a long time, but given that it has access 
to the whole world of COM objects out there, a bit of ant integration 
could be kind of useful.



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to