Okay.....
This works, but...
If the computer has two network interfaces....
How can I know which is the good one???? I want the wired one!! If the two cards are enabled (and, I think, it's quite frequent because users don't know how to use their computer), I cannot know which is the good!!
Moreover, macros @IPAddress1 and @IPAddress2 don't always refer to the same card.
E.G : If I only activate my wired card, @IPAddress1 refers to Ethernet connection, and the @IPAddress2 macro returns 0.0.0.0. If my two cards are activated, @IPAdress1 refers to Wireless card, and the second to the wired card!!!!
So, when I do : netstat -rn (equal to "route print"), there are two lines with 0.0.0.0 0.0.0.0 XXX.XXX.XXX.XXX with different gateways...
How can I be sure to choose the good card???
Thanks a lot...
Julien