Link to home
Start Free TrialLog in
Avatar of Peter Chan
Peter ChanFlag for Hong Kong

asked on

List out file

Hi,
Can I list out all finding, by the below command, if "part1" does ever appear within ANY FILE?

find /v /c /n "part1" .\*.* > .\5W.txt

Open in new window

Avatar of David Sankovsky
David Sankovsky
Flag of Israel image

Just to make sure I understand correctly, you wish to scan the folder you are in right now for any files containing the string part1? or any file NAME that contains part 1?
Avatar of Peter Chan

ASKER

I want to check within file contents, of the current folder.
ASKER CERTIFIED SOLUTION
Avatar of David Sankovsky
David Sankovsky
Flag of Israel image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Bill Prew
Bill Prew

And just for future reference, when you are refering to the current directory in DOS no need for the ".\", so this works fine.

findstr /i "part1" *.* >5W.txt

Open in new window

~bp