Code: Select all
es -w -i -sort path-ascending folder:\SoftwareDistribution
C:\Windows\SoftwareDistribution
C:\Windows\SoftwareDistribution\DataStore
C:\Windows\SoftwareDistribution\Download
C:\Windows\SoftwareDistribution\EventCache.v2
C:\Windows\SoftwareDistribution\PostRebootEventCache.V2
C:\Windows\SoftwareDistribution\SLS
C:\Windows\SoftwareDistribution\DataStore\Logs
C:\Windows\SoftwareDistribution\Download\02fbd3861a0a12540c41a5dd9becb06d
I'm only interested in the first match:
C:\Windows\SoftwareDistribution
... the "root" of all the other subfolder
How can I stop matching the rest of the subfolders?
I've tried with several combinations of switches but can't get it right.