I would like to get a directory structure in Windows like the output of dir /S
, but only line beginning like this: Directory of...
1 Answer
If you insist on Directory of
, this might help (running from a command line):
for /f "delims==" %i in ('dir /s ^| find "Directory of"') do @echo %i
Running from a batch file, double the percentage:
@for /f "delims==" %%i in ('dir /s ^| find "Directory of"') do @echo %%i
dir /s /ad /b
ortree