
CODE: [Copy to clipboard]但是结果中有空格,能否过滤空格?@echo off
set mytemp=
for /f "delims=个目录 tokens=2" %%i in ('dir c:\ ^| find "可用字节"') do set mytemp=%%i
for /f "delims=可用直接" %%i in ('echo %mytemp%') do set mytemp=%%i
for %%j in (1,1,15) do for /f "delims= " %%i in ('echo %mytemp%') do set mytemp2=%mytemp2%%%i
for /f "tokens=*" %%i in ('echo %mytemp%') do set mytemp=%%i
echo %mytemp%
CODE: [Copy to clipboard]@for /f "tokens=2 delims=个目录可用字节 " %%a in ('dir C:\ ^| find "可用字节"') do @set mytemp=%%a
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |