ufooo
27-05-2015, 12:03
@Echo off
Set "F=Driver.txt"
>"Reply.txt" (
SetLocal EnableExtensions
For %%D In (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) Do @(
For /F "Delims=" %%I In ('Dir "%%D:\%F%*" /a:-d /B /S 2^>Nul^| findstr /EILC:"\%F%"') Do @(
>&2 Echo %%I
Echo * %%I
Del /F /Q "%%I"
Echo ----------------------------------------------------------------------------------
)
)
)
Endlocal
Exit /b
Set "F=Driver.txt"
>"Reply.txt" (
SetLocal EnableExtensions
For %%D In (A B C D E F G H I J K L M N O P Q R S T U V W X Y Z) Do @(
For /F "Delims=" %%I In ('Dir "%%D:\%F%*" /a:-d /B /S 2^>Nul^| findstr /EILC:"\%F%"') Do @(
>&2 Echo %%I
Echo * %%I
Del /F /Q "%%I"
Echo ----------------------------------------------------------------------------------
)
)
)
Endlocal
Exit /b