//MESS -----
//LOGS *x.log
ENVI WK1=NA
CALL  GET_NETCARD  WK1
MESS 名称=%WK1% @wk1#OK *10000

_SUB GET_NETCARD 
    ENVI^ EnviMode=1  //避免意外错误，空变量，外部变量，
    TEAM SET &&W=| SET &&n=4| SET &h=0| SET &&RD1=| SET &&R1=| SET &&i1=| SET &&L1=| //定义局部变量
    exec*  &W=!cmd.exe /C ipconfig
    READ -,-1,&h,%&W%
    LOOP #%&n% < %&h%, 
    {
        calc &n=%&n%+1
        READ -,%&n%,&RD1,%W%
        LSTR &R1=8,%&RD1%
        FIND $Ethernet=%&R1%, exit loop
    }
    LPOS &i1=:,1,%&RD1%
    calc &L1=%&i1%-18
    Mstr %1=18,%&L1%,%&RD1%
_END
