Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Batch to search in multiple files
Name: svkrec Date: September 4, 2008 at 12:47:44 Pacific OS: Win XP CPU/Ram: P4/1GB Product: Dell
Comment:
Hi, I need help to write one MS-DOS batch file. I have one file 'FNin.txt' which contains following values srchstr1 srchstr2 srchstr3 ... srchstr999
I need to read each string from 'FNin.txt' and then search this string in all the text files present in sub-folders and write the file names that contain search string in another output file, say 'FNout.txt' in following format srchstr1 - file1.txt, file3.txt, file21.txt srchstr2 - file4.txt, file8.txt, file348.txt etc
I have to repeat above for all the strings present in 'FNin.txt'. I know FINDSTR can be used, but I want to know how can I write a batch file for it.
Summary: Hi friends, I want to write a small program that searches in document files for a specific phrase or sentences. ( like 'Find files' in windows explorer). However I am unable to search in PDF files? H...
Summary: This appears to almost work, with the acception of it only being able to search one file name and once it copys the file it renames it filetosearch. I need the file names to stay the same, and I need ...
Summary: Team , I want to ask u some more in this. " for %%f in ("*.txt") do ( echo "%%f" | find %%f /c "<reply>done</reply>" if !errorlevel! EQU 0 set /a count=count+1 )" Using this code I am ab...