- 帖子
- 997
- 积分
- 1789
- 技术
- 205
- 捐助
- 50
- 注册时间
- 2016-4-17
|
19楼
发表于 2017-4-3 12:51
| 只看该作者
Echo off&cls&setlocal ENABLEDELAYEDEXPANSION
for /l %%a in (1,1,8) do set pattern=!pattern![0-9]
Set/pn=
For /l %%a in (1,1,6) do (
set /a tmp=8*%%a-8
Call echo %%n:~!tmp!,8%%|Findstr "^%pattern%$" >nul || Set bool=False
)
If "!bool!" Equ "False" (Echo !bool!) Else Echo True
Pause
123456789012345678901234567890123456789012345678
-12345678901234567890123456789012345678901234567
000000000000000000000000000000000000000000000000
1 3456789012345678901234567890123456789012345678 |
|