Разобрался уже со своим батником. Сделал так:
Код: @echo off
Set /p in=search:
echo Please wait...
mode con codepage select=1251 > nul
set ind=0
:next
set /a ind+=1
set tmp=
for /f "delims=\ tokens=%ind%" %%a in ("%~dp0") do set tmp=%%a
if not "%tmp%"=="" goto next
set /a ind-=1
if exist Rezult.txt del Rezult.txt
for /f "delims=\ tokens=%ind%*" %%a in ('dir *.%in% /b /s') do echo %%b >> Rezult.txt
if exist Rezult.txt start Rezult.txt
Код: @echo off
Set /p in=search:
echo Please wait...
mode con codepage select=1251 > nul
set ind=0
:next
set /a ind+=1
set tmp=
for /f "delims=\ tokens=%ind%" %%a in ("%~dp0") do set tmp=%%a
if not "%tmp%"=="" goto next
set /a ind-=1
if exist Rezult.txt del Rezult.txt
for /f "delims=\ tokens=%ind%*" %%a in ('dir *.%in% /b /s') do echo %%b >> Rezult.txt
if exist Rezult.txt start Rezult.txt