I am using Windows Server 2008 and I need to create a Batch file (.bat) to search for a given string in 20.000 to 30.000 files located all in one folder in the same level (without subfolders).
I have been searching and reading around but I couldn't find anything to do it.
Trying it with this without success:
@echo off for /r "delims=|" %%i in (*) do (
findstr /m /C:"34444" %%i
)
Best Answer
From batch
From command line
also from powershell, create named batch file *.cmd extension containing following content. (remember to change the gci path 'your folder path'.
call batch file *.cmd to run the powershell search.