SEEK.BAT @echo off cls echo Use PAGE DOWN or PAGE UP keys to scroll through results, result.asc echo or click the SEARCH option above. >>result.asc if "%1"=="" goto noword if not "%4"=="" goto noword if "%2"=="" if not "%1"=="" if "%3"=="" goto oneword if "%3"=="" if not "%2"=="" goto twoword if not "%3"=="" goto threewrd :noword echo. echo. Please enter at least 1 echo. search word, and no more echo. than 3. echo. goto end :oneword echo. echo. 1 word string entered. echo. Please wait, processing ... echo. for %%F in (*.txt) do find /i "%1" %%F >> result.asc edit result.asc cls goto end :twoword echo. echo. 2 word string entered. echo. Please wait, processing ... echo. for %%F in (*.txt) do find /i "%1 %2" %%F >> result.asc edit result.asc cls goto end :threewrd echo. echo. 3 word string entered. echo. Please wait, processing ... echo. for %%F in (*.txt) do find /i "%1 %2 %3" %%F >> result.asc edit result.asc cls :end rem END OF THIS BATCH FILE