Hi Sylvain

This might be a caused by using two net-cards.

If the @Ras macro always works the first time you could try this:

Script1:

IF @RAS = 0
<commands when logged on locally>
Set "RAS=NO"
ELSE
<commands when logged on by RAS>
Set "RAS="
ENDIF

Script2:

IF %RAS% = "NO"
<commands when logged on locally>
ELSE
<commands when logged on by RAS>
ENDIF

-Erik

PS: If you have any Win9x workstations you have to shell out and use WinSet.exe

[This message has been edited by kholm (edited 16 November 2000).]