Even better!  I hadn't seen that.

One suggestion... adding spawn="true" to the exec tag should cause the
script to continue even while the spawned window has not been closed...
yep, just tried it, at least on XP that's the case.

Frank

On Mon, August 15, 2005 1:57 am, Ruchira Amarasinghe said:
> 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/[EMAIL 
> PROTECTED]
>
> 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: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> 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