
CODE: [Copy to clipboard]@echo off
if not exist e:\22 (md e:\22)
type a.txt >e:\22\99.txt&echo.文本保存成功&type a.txt
for /f "tokens=1* delims=:" %%a in ('findstr /n .* a.txt') do (
if %%a equ 7 (
for /f "tokens=6" %%i in ("%%b") do (
Set A=%%i
)
)
)
echo.
echo.
echo.
echo/变量A的值为:%A%
pause>nul
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |