
| Quote: | |
|
CODE: [Copy to clipboard][ Last edited by 26933062 on 2007-11-29 at 05:09 AM ]@echo off&setlocal enabledelayedexpansion
for /f "delims=" %%a in ('findstr "\<.*{..*}.*\>" a.txt') do (
set str=%%aa
set str=!str:*{=!
set var=!str:*}=!
call set num=%%str:!var!=%%
echo !num:~0,-1!
)
pause
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |