My bad :
"-->" is nasty comment string!!!
Use better:
<target name="map_drive" depends="" description=":description">
<exec executable="net">
<arg line="use n: \\cm-web01"/>
</exec>
</target>
Alexey
-----Ursprüngliche Nachricht-----
Von: Stojanov Alexej
Gesendet: Mittwoch, 17. Oktober 2007 09:46
An: 'Ant Users List'
Betreff: AW: Map a drive ("The ' characters around the executable and arguments
are not part of the command.")
Hi Yona,
for Windows try with that:
<exec executable="net">
<arg line="use n: \\cm-web01"/>
</exec>
<!-- or -->
<exec executable="net">
<arg line="use n: \\cm-web01 <password> /user:<user>"/>
</exec>
Alexey
-----Ursprüngliche Nachricht-----
Von: Yona Eilat [mailto:[EMAIL PROTECTED]
Gesendet: Mittwoch, 17. Oktober 2007 09:23
An: Ant Users List
Betreff: Map a drive ("The ' characters around the executable and arguments are
not part of the command.")
Hi All,
I wrote the following simple code to map a NT drive to some path:
<target name="map_drive" depends="" description="-->
description">
<exec executable="cmd.exe">
<arg value="NET USE N: \\cm-web01"/>
</exec>
</target>
And once I execute it, I get the following errors:
"The ' characters around the executable and arguments are not
part of the command."
The file attached include the full error log.
Please advice.
Thanks,
Yona.
***********************************************************************
Die Information in dieser email ist vertraulich und ist ausschließlich
für den/die benannten Adressaten bestimmt. Ein Zugriff auf diese
email durch andere Personen als den/die benannten Adressaten ist
nicht gestattet. Sollten Sie nicht der benannte Adressat sein, löschen
Sie bitte diese email.
***********************************************************************
ARGE Informationssysteme
in der gesetzlichen Krankenversicherung GmbH
Paul-Klinger-Straße 15, 45127 Essen
Amtsgericht Essen HRB 11122
Vorsitzender des Aufsichtsrates: Wolfgang Schmeinck
Geschäftsführer: Frank Krause, Andreas Prenneis
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]