@echo off
SetLocal EnableDelayedExpansion
for /f %%a in ('mountvol ^|find ":\"') do (
for /f %%b in ('fsutil fsinfo drivetype %%a ^|find "固定"') do (
set vol=%%b
for /r !vol! %%i in (*) do (
echo %%i
)
)
)
pause
@echo off
for /f %%a in ('mountvol ^|find ":\"') do (
for /f %%b in ('fsutil fsinfo drivetype %%a ^|find "固定"') do (
pushd %%b
for /r . %%i in (*) do (
echo %%i
)))
pause