To get you started, you can get a simple list using the DOS DIR command:
Code:
DIR /B /S c:\SOMEFILE.TXT >%TEMP%\FILELIST.TXT



This will find all instances of SOMEFILE.TXT on the C: drive, and write the list to a file called FILELIST.TXT in your TEMP directory.