Thanks MCA,
it worked.
Not at first, I had to put a ‘sleep 1’ between the use’s , now it works fine, strangely enough.
I know it’s kinda messy end I will get back in to this later, when time let’s me.
This is the code in the map loop for now:
code:
Use $DRIVELETTER + ":" /DELETE /PERSISTENT
$AFD_ERR_1 = @ERROR
$AFD_ERR_2 = @SERROR
If $AFD_ERR_1 <> 0 AND $MACHINE = "MY-TOKO"
$DUMMY = MessageBox ("DELETE ERROR = " + $AFD_ERR_1 + " : " + $AFD_ERR_2 + " " + "Deleting Mapping " + $DRIVELETTER + ": ", "Mapping Errors", 64, 5)
EndIf
Sleep 1
Use $DRIVELETTER + ":" "$AFDELING"
$AFD_ERR_1 = @ERROR
$AFD_ERR_2 = @SERROR
If $AFD_ERR_1 <> 0 AND $MACHINE = "MY-TOKO"
$DUMMY = MessageBox ("MAP ERROR = " + $AFD_ERR_1 + " : " + $AFD_ERR_2 + @CRLF + "Mapping " + $DRIVELETTER + ": = '" + $AFDELING + "'", "Mapping Errors", 64, 5)
EndIf
Thanx eve,
Michel S.