ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > Living Room

create a list of paths to a speific subfolder name underneath a parent folder


Short of loading up on GNU commands is there an easy way to do this?   MS completely left out all ability to specify any boundaries on the "dir" or "search" or any other windows/dos commands.  I need a list of all the paths to subfolders named "cache" underneath a parent folder.  Most are at the 2nd level and none are more then 3 or 4.  I had thought maybe Dos "find" might do it but they have no recursive abilities or if they do they won't for me.  I end up being the one doing al the "curs" ing  :) instead.  I also tried to preload the Utility "everything" to just look for every occurrence of that name using the Parent folder as a starting point but for some reason even that doesn't want to cooperate.
If I run the search inside the parent, there will be many of these subfolders named "cache".  While the cache subfolder may contain other subfolders I only need to get a list of paths to the top level "cache" subfolder.  A simple text file would be nice showing the full path all the3 way back to c:\.

MasterSeeker 1.2!  THAT is exactly what I needed!  
WOW  I found my own answer almost immediately right here on DC!

BEST Place to find the answers to Anything!
 :) :P
>>And that is not just an unwarranted  "Plug" for you  DxCK  it really DOES do things nothing else would!

dir "cache" /s /ad /b >somefile.txt

Run it from the parent directory.

--- Code: Text ---C:\Program Files (x86)\Steam\steamapps\common\farcry\Shaders\CacheC:\Program Files (x86)\Steam\steamapps\common\farcry\Shaders\HWScripts\Declarations\CGPShaders\CacheC:\Program Files (x86)\Steam\steamapps\common\farcry\Shaders\HWScripts\Declarations\CGVShaders\CacheC:\Program Files (x86)\Steam\steamapps\common\penumbra overture\redist\core\cacheC:\ProgramData\Microsoft\Windows\DRM\CacheC:\Users\4wd\AppData\Local\dxhr\cacheC:\Users\4wd\AppData\Local\Microsoft\Terminal Server Client\CacheC:\Users\4wd\AppData\Local\Microsoft\Windows Store\CacheC:\Users\4wd\AppData\Local\NuGet\CacheC:\Users\4wd\AppData\Local\Origin\Origin\cacheC:\Users\4wd\AppData\Local\Packages\winstore_cw5n1h2txyewy\LocalState\CacheC:\Users\4wd\AppData\LocalLow\Sun\Java\Deployment\cacheC:\Users\All Users\Microsoft\Windows\DRM\CacheC:\Windows\System32\spp\store\2.0\cache


[0] Message Index

Go to full version