Putting folder names in a text file


  1. Posts : 706
    W10
       #1

    Putting folder names in a text file


    I have a folder with someh hundred subfolders. Is it possible to have these folder names in a text file?
      My Computer


  2. Posts : 17,838
    Windows 10
       #2

    PiKo said:
    I have a folder with someh hundred subfolders. Is it possible to have these folder names in a text file?
    Shift right click in the parent folder/open command window/power shell here/paste dir > listmyfolder.txt and Enter
      My Computer


  3. Posts : 5,478
    2004
       #3

    If you want the subdirectories too then do this:

    dir /ad /s /b > listmyfolder.txt

    /ad means show only directories
    /s means recurse through subdirectories
    /b means show basic details.
      My Computer


  4. Posts : 706
    W10
    Thread Starter
       #4

    Thanks for these answers. They did what I wanted.
      My Computer


 

  Related Discussions
Our Sites
Site Links
About Us
Windows 10 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 10" and related materials are trademarks of Microsoft Corp.

© Designer Media Ltd
All times are GMT -5. The time now is 21:52.
Find Us




Windows 10 Forums