Tom Del Rosso
2023-01-02 08:33:59 UTC
One annoying habit of windows is that it doesn't always distinguish
between
DIR C:\WORK
and
DIR C:\WORK\*.*
So if you want to list all folders of a certain name like TEMP
C:\Tech\Android\TEMP
C:\Tech\TEMP
then
DIR /S/B/AD C:\Tech\TEMP
will look only into
C:\Tech\TEMP
and since it doesn't contain another TEMP under it like
C:\Tech\TEMP\TEMP
the output is blank.
I can think of kludgey ways to get around that, but is there an elegant
way?
between
DIR C:\WORK
and
DIR C:\WORK\*.*
So if you want to list all folders of a certain name like TEMP
C:\Tech\Android\TEMP
C:\Tech\TEMP
then
DIR /S/B/AD C:\Tech\TEMP
will look only into
C:\Tech\TEMP
and since it doesn't contain another TEMP under it like
C:\Tech\TEMP\TEMP
the output is blank.
I can think of kludgey ways to get around that, but is there an elegant
way?
--
Defund the Thought Police
Defund the Thought Police