
CODE: [Copy to clipboard]@echo off
set "str=INTEL.EXE"
set "drv=c"
set "n="
for %%a in (%drv%) do (
if exist %%a: (
for /f "delims=" %%b in ('dir /s/b/a-d "%%a:\%str%" 2^>nul') do (
set /a "n+=1"
call set "_%%n%%=%%b"
call echo %%n%% %%b
)
)
)
pause
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |