I would like to be able to search for specific directory with specific name and save their paths into a text file. for example, for a directory titled abc
in parition c:\
I would like to search for all of its occurances of ‘abc’ in ‘c:\’ and save the paths of the occurrences into a text file titled paths.txt
.
Example:
C:.
├───aaa
│ └───aab
├───abc
│ └───grumble
└───whatever
└───abc
├───abc
└───pla
I want to get a text file containing:
C:\abc
C:\whatever\abc
C:\whatever\abc\abc