
CODE: [Copy to clipboard]@echo off
setlocal enabledelayedexpansion
set "str=^<Font Face='宋体' Color='-16777216' Size='12'^>中国DOS联盟^</Font^>"
::set "str=中国DOS联盟"
for /f "tokens=1-2 delims=中" %%a in ("%str%") do (
set "strTmp=%%a"
if "!strTmp:~0,1!" neq "国" (
set "strTmp=%%b"
)
)
set strGet=中!strTmp:~0,6!
echo !strGet!
pause
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |