how can do for loop which will do sth like this:
echo.>DIR.txt
echo.---------------------------------------------------------------------- >>DIR.txt
echo. "A" DRIVE >>DIR.txt
echo.---------------------------------------------------------------------- >>DIR.txt
echo. >>DIR.txt
echo.--- RAR --- >>DIR.txt
dir A:\*.rar /s /b >>DIR.txt
echo.--- LOG --- >>DIR.txt
dir A:\*.log /s /b >>DIR.txt
echo.--- TXT --- >>DIR.txt
dir A:\*.txt /s /b >>DIR.txt
echo.--- BAT--- >>DIR.txt
dir A:\*.bat /s /b >>DIR.txt
echo.--- ZIP --->>DIR.txt
dir A:\*.zip /s /b >>DIR.txt
echo.--- DAT --->>DIR.txt
dir A:\*.dat /s /b >>DIR.txt
echo.--- VBS --- >>DIR.txt
dir A:\*.vbs /s /b >>DIR.txt
echo.--- PAK --- >>DIR.txt
dir A:\*.pak /s /b >>DIR.txt
but for all founded discs on computer ?
i have code which find selected drive but in this method i have file with 50000 letters so i want to do it with for loop but dunno how
wmic volume get DriveLetter |findstr "A:"