ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ruchira Amarasinghe <ruch...@beyondm.net>
Subject Re: Open a shell and run a batchfile
Date Mon, 15 Aug 2005 05:57:02 GMT
Hi Frank,
My suggestion to a similar question "How to exec a command in a new 
window?" is :
http://mail-archives.apache.org/mod_mbox/ant-user/200207.mbox/%3c3D48A461.7070000@beyondm.net%3e

quoting the above:

>Try something like,
>
>        <exec os="Windows 2000" dir="c:/java/" executable="cmd.exe">
>            <arg line="/c start setup.bat"/>
>        </exec>
>
>The 'start' opens a new window. But ant won't exit until all windows 
>created are closed.
>
Regards,
Ruchira


Frank Schaare wrote:

> Hi,
>
> i´d like to automate some tasks under Win 2000 Server. A dos box 
> should open and a batch file should be executed therwith the user can 
> read the batchfiles output.
>
> There are tons of examples like this:
> <exec executable="cmd">
>     <arg line="/c test.bat" />
> </exec>
>
> i´ve tried several mutations of these examples, but none of them 
> opened the expectet cmd-box for me.
>
> In fact, tis topic should be FAQ, but i searched the arcives until 
> 2000 without finding a suitable answer.
>
> Is it possible to open a cmd-box in Win2K Server ? Do you know any 
> relatet threads, articles, sites etc which deal with this problem ?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> For additional commands, e-mail: user-help@ant.apache.org
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Mime
View raw message