Folder Names to Text Files

Discussion in 'General Chat' started by sachin410, Sep 13, 2005.

  1. #1
    On my PC I got a folder ABC. It has 100s of folders in it....say for example.. qwe qwr asd fgg hsf ...etc

    Is there a way to convert all the FOLDER NAMES to a TEXT FILE... (I need a text list of all the folders I have)

    The content of the text file would look something like this:

    qwe
    qwr
    asd
    fgg
    hsf
    ...
     
    sachin410, Sep 13, 2005 IP
  2. exaro

    exaro Peon

    Messages:
    615
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #2
    it can be done with PHP online with cURL I believe. Google that.
     
    exaro, Sep 13, 2005 IP
  3. iskandar

    iskandar Well-Known Member

    Messages:
    897
    Likes Received:
    83
    Best Answers:
    0
    Trophy Points:
    148
    #3
    Open up your dos shell

    go to the folder ABC and type this -

    dir /b/p > textfile.txt

    Of course, change textfile.txt to whatever you want. Now, inside the folder, you'll see a new file with all the folder names
     
    iskandar, Sep 13, 2005 IP
  4. exaro

    exaro Peon

    Messages:
    615
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #4
    yea i thought about that too, or running a batch file, if it needs to be done more than once. I forgot the terminology though.
     
    exaro, Sep 13, 2005 IP
  5. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #5
    Command line DOS is/was a powerful tool... bit by bit it's slipping out of style and out of common knowledge. I still use a batch files for automating tasks like disk cleanup and backups...
     
    minstrel, Sep 13, 2005 IP
  6. exaro

    exaro Peon

    Messages:
    615
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #6
    Yea it's not very popular any more. Although, it's still just as useful and powerful. My dad is the sys admin at a hospital in Philadelphia, and he uses Batch's all the time to manage inventory data. So he can just send it to the users, instead of them managing it themselves.
     
    exaro, Sep 13, 2005 IP
  7. iskandar

    iskandar Well-Known Member

    Messages:
    897
    Likes Received:
    83
    Best Answers:
    0
    Trophy Points:
    148
    #7
    BTW, the command above will list all files& folders .. ( i hope you only have 100 folders and not 100 folder and 100 normal files in it )

    Anyone can suggest a command to list ONLY folders?
     
    iskandar, Sep 13, 2005 IP
  8. iskandar

    iskandar Well-Known Member

    Messages:
    897
    Likes Received:
    83
    Best Answers:
    0
    Trophy Points:
    148
    #8
    It's powerful but it is nothing near Linux shell .. but ..well it does help with certain things
     
    iskandar, Sep 13, 2005 IP
  9. minstrel

    minstrel Illustrious Member

    Messages:
    15,082
    Likes Received:
    1,243
    Best Answers:
    0
    Trophy Points:
    480
    #9
    dir /ad >textfile.txt

    or dir /a:d >textfile.txt
     
    minstrel, Sep 13, 2005 IP
    sachin410 likes this.
  10. sachin410

    sachin410 Illustrious Member

    Messages:
    6,422
    Likes Received:
    573
    Best Answers:
    0
    Trophy Points:
    410
    #10
    It works. Thanks a lot . You have made my work much easier. :)
     
    sachin410, Sep 13, 2005 IP
  11. muneervava

    muneervava Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    On my PC I got a folder ABC. It has 100s of folders in it....say for example.. qwe qwr asd fgg hsf ...etc

    Is there a way to convert all the FOLDER NAMES to a TEXT FILE... (I need a text list of all the folders I have)

    The content of the text file would look something like this:

    qwe
    qwr
    asd
    fgg
    hsf
    ...
     
    muneervava, Jan 28, 2010 IP
  12. vinopaul

    vinopaul Peon

    Messages:
    206
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #12
    Command line DOS is/was a powerful tool.:)
     
    vinopaul, Feb 3, 2010 IP