- @echo off
- set str1={"192.168.1.109", "fe80::e896:88ef:3c9f:8152"} 44:39:C4:52:68:47
- set str2={"192.168.1.109"} 44:39:C4:52:68:47
- call :_GetMac "%str1%"
- call :_GetMac "%str2%"
- pause
- exit
-
- :_GetMac
- for /f "tokens=2 delims=}" %%a in ("%~1") do echo,%%a
- goto :EOF
-
- :EOF
复制代码
|