1、
@echo off
for /f "tokens=12 delims= " %%i in ('ipconfig/all^|find /i "phys"')do if not defined m set "m=%%i"
if not exist c:\123\ md c:\123
echo %m%>c:\123\a.txt
2、
@echo off
for /f "tokens=12 delims= " %%i in ('ipconfig/all^|find /i "phys"')do if not defined m set "m=%%i"
find /i "%m%" c:\123\a.txt &&start "" 1.exe||start "" 2.exe
可以的,请测试!
你的意思是让人帮你制作这两个批处理文件吗?