Results 1 to 4 of 4

Thread: Create directory list from Command line

  1. #1
    Junior Member
    Join Date
    Jan 2008
    Posts
    23
    Thanks
    4
    Thanked 1 Time in 1 Post
    Rep Power
    198
    Reputation
    15

    Default Create directory list from Command line

    Before the Austech crash, someone helped me out withthis problem.

    Entered at DOS prompt, generates a txt file of sub directories within a certain directory.

    Eg. Within the directory of c:\people there are sub directories - john, bill, fred, bob, phil, sam - want their names to be extracted to eg. list.txt

    Hope this isn't too confusing.

    Thanks in advance,

    Jack



Look Here ->
  • #2
    Administrator

    Join Date
    Jan 2008
    Location
    Newcastle, Nsw
    Posts
    4,604
    Thanks
    815
    Thanked 2,531 Times in 1,138 Posts
    Rep Power
    1178
    Reputation
    41376

    Default

    OK ....... to make a text file listing all files in your windows folder you would type:

    cd\windows
    Press enter then type:
    dir > filename.txt

  • #3
    Senior Member
    ssrattus's Avatar
    Join Date
    Jan 2008
    Posts
    4,160
    Thanks
    515
    Thanked 821 Times in 490 Posts
    Rep Power
    454
    Reputation
    5922

    Default

    Code:
    dir /S will display the files in subdirectories.
    
    dir /A:D will only display directories, with heading info and summary
    
    dir /A:D /B will only display directories.

  • #4
    Junior Member
    Join Date
    Jan 2008
    Posts
    23
    Thanks
    4
    Thanked 1 Time in 1 Post
    Rep Power
    198
    Reputation
    15

    Default

    thanks guys!

  • Bookmarks

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •