terse 当前离线
中将
set b=&(set a=192)&(if not defined b set b=168)&(if not defined b set b=1)&(if not defined b set b=2)复制代码
TOP
Linuxer 当前离线
五级士官
(set b=)&(set a=%ip:.=)&(if not defined b set b=%)复制代码
CrLf 当前离线
论坛巡查
@echo off %1 set ip=192.168.1.1 %1 %0 : %ip:.= %&eixt/b echo %2.%3复制代码
@echo off set ip=192.168.1.1 (set b=)&(set a=%ip:.=)&(if not defined b set b=%) echo %a%.%b% pause复制代码
523066680 (消遣区)当前离线
版主
@echo off set ip=192.168.1.1 call :next %ip:.= % pause exit :next echo %1.%2复制代码
评分人数
@echo off for /f "delims=: tokens=2" %%i in ('ipconfig ^| find /i "IPv4"') do echo %%i pause>nul复制代码
@echo off for /f "delims=: tokens=2" %%i in ('ipconfig ^| find /i "IP Address"') do echo %%i pause>nul复制代码
@echo off & setlocal enabledelayedexpansion set "a=192.168.1.2" set b=%a:*.=% set b=!a:.%b%=!.!b:.%b:*.=%=! echo %b% pause复制代码
牛虻 当前离线
一级士官
@echo off set a=10.112.1.1 for /f "delims=. tokens=1,2" %%i in ("%a%") do (set b=%%i.%%j) echo %b% pause复制代码
ditto 当前离线
上等兵
Linuxer 发表于 2014-8-28 10:38
set a=192.168.1.2 set b=%a:~0,7%复制代码