本帖最后由 zaqmlp 于 2018-1-10 12:00 编辑
- @echo off
- setlocal enabledelayedexpansion
- mode con cols=140 lines=10
- color 0a
- set "#0= "
- set "#1=■■■■"
- set "#2=■ ■"
- set "#3=■ "
- set "#4= ■"
- set "#5=■"
- set _#0=1,2,2,2,2,2,1
- set _#1=5,5,5,5,5,5,5
- set _#2=1,4,4,1,3,3,1
- set _#3=1,4,4,1,4,4,1
- set _#4=2,2,2,1,4,4,4
- set _#5=1,3,3,1,4,4,1
- set _#6=1,3,3,1,2,2,1
- set _#7=1,4,4,4,4,4,4
- set _#8=1,2,2,1,2,2,1
- set _#9=1,2,2,1,4,4,1
- set _#.=0,0,0,0,0,0,5
- for /f tokens^=1^,2^ delims^=^" %%a in ('wmic nicconfig get IPAddress /value ^| findstr /i "IPAddress=[^]"') do set ip=%%b
- set s=%ip%fedcba9876543210&set /a len=0x!s:~15,1!-1
- echo;本机IP: %ip%
- if defined ip (
- for /l %%a in (1 1 7) do (
- for /l %%b in (0 1 %len%) do (
- for %%c in (!ip:~%%b^,1!) do (
- set m=1
- for %%d in (!_#%%c!) do (
- if !m! equ %%a set "##%%a=!##%%a!!#%%d! "
- set /a m+=1
- )
- )
- )
- set line=!##%%a!&echo;!line:~,-1!
- )
- )
- pause
复制代码
|