Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

search for string recursively in windows

Experts,

I need to search for a string recursively in different folders and sub-folders and save it to a txt file in windows environment. I executed the below script but the result is empty.

findstr /s /i /m /c:"topaz3258" H:\MKS\build\host\dev\*\*.* > H:\topaz3258.txt

As the script is checking under multiple folders and sub-folders, I would also like to have the path of the available string stored in a txt file.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

Also please advise where am i making the mistake.

>Solution :

H:\MKS\build\host\dev\*.*

You cannot use wildcards to specify a subdirectory.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading