- @echo off
- set "n=0"
- set "Key=TGJ82-KN9YC-FVXR4-CWBQQ-977HC"
- if "%Key:~5,1%"=="-" (
- if "%Key:~11,1%"=="-" (
- if "%Key:~17,1%"=="-" (
- if "%Key:~23,1%"=="-" (
- if "%Key:~-6,1%"=="-" (
- if "%Key:~29,1%"=="" (
- set n=1
- )
- )
- )
- )
- )
- )
- echo %Key% | findstr /i "A I L O S Z 1 0" > nul && set n=0
- if %n% equ 0 (
- echo 密钥包含非法字符
- )
- pause
复制代码
|