ECHO OFF if exist %2 goto found ECHO. ECHO No files match specification ECHO. ECHO Format for WILDFIND is: ECHO WILDFIND "string" filespec ECHO. ECHO The command takes the same options as the ECHO MS-DOS utility FIND. ECHO. goto end :found for %%a in (%2) do find %1 %%a :end