回复 4# 172788876
2楼已改- @echo off
- setlocal ENABLEDELAYEDEXPANSION
- for /f "tokens=2* delims=: " %%a in (a.txt) do (
- set p=&set m=
- if "%%a"=="IMAGEPICTURE" for %%c in (%%b) do set p=%%~c
- if "%%a"=="DIALOG" for /f "usebackq tokens=9" %%c in ('%%b') do set p=%%~c
- if "%%a"=="STILLIMAGEBUTTON" for /f "usebackq tokens=18,19" %%c in ('%%b') do set p=%%~c&set m=%%~d
- if "%%a"=="SLIDER" for /f "usebackq tokens=8,9" %%c in ('%%b') do set p=%%~c&set m=%%~d
- echo.!p! !m! >>result.txt
- )
复制代码
|