输出的结果却只有一条,请问应该怎么修改才能输出全部结果?复制代码
- for /f "delims=" %%i in ('dir/a/b/s "e:\*.gho"') do (
- set gho=%%i
- )
- echo %gho%
复制代码
- @echo off
- setlocal enabledelayedexpansion
- for /f "delims=" %%i in ('dir /a /b /s "e:\*.gho"') do (
- set gho=%%i
- echo !gho!
- )
- pause
欢迎光临 批处理之家 (http://www.bathome.net/) | Powered by Discuz! 7.2 |