@echo off rem *--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--* rem *** FILE: rem *** ffind.bat rem *** DESCRIPTION: rem *** a batch program to find a file using rem *** the 'for' command on WindowsNT. rem *** Only WinNT (as far as I know) has an 'extended' rem *** syntax for the 'for' command. rem *** This script searches in all sub-directories of the rem *** current one for all files partially matching the rem *** search string. rem *--*--*--*--*--*--*--*--*--*--*--*--*--*--*--*--* if "%1"=="" echo An essential parameter is missing. echo Start > fileList.txt if not "%1"=="" for /r %%i in (*%1*) do echo %%i >> fileList.txt type fileList.txt | more del fileList.txt