Search in windows via command line

I need some help please!

How can i do a search in multiple files for various text using the command line?

Hope this makes sense!

Re: Search in windows via command line

You mean something like “find” ?

Re: Search in windows via command line

yup. i tried this but it didnt work!!

This is a shared drive btw!

Re: Search in windows via command line

You can get ultra edit and do a find in files. I think you can use it on trial for 30 days.

Re: Search in windows via command line

What exactly are u trying to do?
You can use "findstr" if you are looking to scan the insides of files.
There are other 3rd party utilities i can suggest, but need to need to know what the purpose is.

Re: Search in windows via command line

i need to scan files for words inside a folder.
thats basically it

but i dont know the exact command! findstr didnt work for me for some reason

Re: Search in windows via command line

^ unless I'm missing something, "find" would do the job in that case.

find /I "blah" path:\folder*.*

I've tried and it seems to work fine even with mapped drives.

Re: Search in windows via command line

the " ." donates the kind of file im presuming?

Re: Search in windows via command line

^ I'm asking it to search all files in that directory.

Re: Search in windows via command line

"find.exe" would do the trick, but "findstr.exe" gives you a lot more options.
"findstr /M /C:STONECOLE ." = would give you just the file names of the files that contain that string.

Re: Search in windows via command line

i would prob prefer to use findstr as there are more than a few words i want to search for in multiple files. I have already tried this...but its giving too many different file formats..eg pictures...i only want to perform the search in word docs!!!

Re: Search in windows via command line

find never worked correctly for me, so I have another solution, use

GREP

its basically Unix utility, works perfectly fine on command line.

The paid utility is called WinGrep

Re: Search in windows via command line

STONECOLD, to search for a specific file type instead of using . use for instance *.doc or *.txt.

Re: Search in windows via command line

Thanks mate, i will def try it out!