'How to search string in files in all folder names called mydata in windows cmd

Some folders named mydata in a different directory.
For example,

First mydata folder path is C:\path1\user\mydata

The second mydata folder path is C:\somewhere\data\mydata

....

one more mydata folder path is C:\others\todo\mydata

How to search a string in files in all mydata folders in windows cmd? Just get a list of filenames and their path.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source