一闪而过
@echo off
cd /d %~dp0
for /f "delims=: tokens=1,2" %%a in ('ipconfig ^|find "IPv4"') do (
if "%%b" = 192.168.1.1 start mhtcgi.exe
if "%%b" = 192.168.1.2 start Microsoft Edge.lnk
)
exit
@echo off
cd /d %~dp0
for /f "delims=: tokens=1,2" %%a in ('ipconfig ^|find "IPv4"') do echo,%%b&set ips=%%b
if %ips% == 192.168.1.123 start 111.EXE
if %ips% == 192.168.1.2 start DDD.EXE
if %ips% == 192.168.1.3 start AAA.EXE
..............
exit