@echo off
echo Input the find string:
set /p fndstr=String:
for /f "delims=" %%a in ('dir /s/b .\*.java') do (
findstr /i /n "%fndstr%" "%%a"
echo %%a
echo ------------------------------------------------------
)
echo result was in file「findrst.txt」,please see there....
pause