0

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
  • dir /s /ad /b or tree
    – user364455
    Apr 28, 2015 at 16:11

1 Answer 1

0

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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .