Batch file to find file in folder & subfolders
Posted: 27 Jul 2011 13:01
Hi
i want batch file which will work like windows search
when i run the batch file
1.it will prompt for path
2. then search string (eg. sample workbook.xls) i will enter string sample
3.it will search for string on that path & save the results in excel file, mean ">" divert the results to excel file in same folder
4. excel file will contain all the results of search, it should contain path of file which is found
eg. c:\temp\sample.xls
c:\temp\temp2\sample workbook.xls
5.if not found then excel file results will be not found
i will appreciate any help on this.
i want batch file which will work like windows search
when i run the batch file
1.it will prompt for path
2. then search string (eg. sample workbook.xls) i will enter string sample
3.it will search for string on that path & save the results in excel file, mean ">" divert the results to excel file in same folder
4. excel file will contain all the results of search, it should contain path of file which is found
eg. c:\temp\sample.xls
c:\temp\temp2\sample workbook.xls
5.if not found then excel file results will be not found
i will appreciate any help on this.