Outputting Directories To Text


  1. Posts : 58
    Windows 10 Home
       #1

    Outputting Directories To Text


    i am trying to create a text file with a list of directories, but having troubles because i can't get as specific as i would like.

    Code:
    dir /s /b /ad /on > filename.txt
    and some programs i have tried aren't getting what i want exactly

    1. the root directory name is redundant and i don't need it in my text file
    2. i would like some control over how deep the folders go
    3. if i can alphabetize the deepest directories, that would be great

    why? My roommates want a list of movies that i have on my computer. They are all organized in a single subfolder (director, actor, decade, or genre). All i want is a list of each movie's folder (/Movie Folder/) and in alphabetical order. The programs i have tried insist on organizing them by its top directory.

    Any ideas?
      My Computer


  2. Posts : 3,502
    Win_8.1-Pro, Win_10.1607-Pro, Mint_17.3
       #2

    Try this

    File Explorer
    Navigate to the parent folder or drive of your movie folders

    in the search box, type the following

    kind:=folder

    Click on the column heading to sort by that field (Name, Date modified, Type, etc)

    When the search is complete, select all in the results
    On the Home menu - Select Copy path

    Outputting Directories To Text-fxpcopypath.png

    Then paste the clipboard in a text file
      My Computer


  3. Posts : 58
    Windows 10 Home
    Thread Starter
       #3

    YES! Thank you. This is a good method. I never knew you could do these things in file explorer
      My Computer


  4. Posts : 3,502
    Win_8.1-Pro, Win_10.1607-Pro, Mint_17.3
       #4

    Now you know

    Glad it helped ... When you get the chance, please mark your thread solved
      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 07:42.
Find Us




Windows 10 Forums