You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Milind Nirgun <Ni...@C-IV.org> on 2002/08/01 03:05:14 UTC

How to exec a command in a new window?

I am trying to start a command line script (.bat file) using an exec task. It works properly but runs in the same window. Is there a way to fork a new window?

-Milind


--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: How to exec a command in a new window?

Posted by Ruchira Amarasinghe <ru...@beyondm.net>.
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.

Ruchira

Milind Nirgun wrote:

>I am trying to start a command line script (.bat file) using an exec task. It works properly but runs in the same window. Is there a way to fork a new window?
>
>-Milind
>
>
>--
>To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
>For additional commands, e-mail: <ma...@jakarta.apache.org>
>
>
>
>  
>




--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>