I have a folder which has multiple type of files (word/excel/pdf/notepad). i want to list the which has the string inside the file.
eg:
vijay - list the files only if it has a string anywhere inside the file as "vijay"
vijay kumar - list only the file which has "vijay kumar" inside the file
I tried below command but its either not listing the files or pulling files which doesn't have vijay inside.
findstr /s /i /m /c:"vijay" *.* > vijay.txt;
can you please provide a windows script, where i can get the list of files based on my search term
There are reasons why
Findstrcannot see a string such as "vijay"If you set up Windows search correctly you may get in just a few seconds a result from the constantly updated index, so in my downloads area I find your name 25 times. Apparently among 100s of thousands of files!
Whilst it's not part of your question, there are many alternative methods and perhaps the best for your type of task is to look at MythicSoft AgentRansack Pro https://help.mythicsoft.com/filelocatorpro/v9/en/index.html?index-interface.htm or perhaps Swiss File Knife/Depeche however that may not work with PDF indexing.