Read contents of a directory into a text file

Discussion in 'OT Technology' started by kasuo, Jan 11, 2006.

  1. kasuo

    kasuo BRICK NOT HIT BACK

    Joined:
    Dec 30, 2005
    Messages:
    895
    Likes Received:
    0
    Location:
    California
    Anyone know of a simple program I can download to read the contents of a directory and create a text file with the file names?
     
  2. CyberBullets

    CyberBullets I reach to the sky, and call out your name. If I c

    Joined:
    Nov 13, 2001
    Messages:
    11,865
    Likes Received:
    0
    Location:
    BC, Canada/Stockholm, Sweden
    why not pipe dir into a text file?
     
  3. Supernaut

    Supernaut New Member

    Joined:
    May 20, 2003
    Messages:
    8,047
    Likes Received:
    0
    dir /b > blahblah.txt
     
  4. kasuo

    kasuo BRICK NOT HIT BACK

    Joined:
    Dec 30, 2005
    Messages:
    895
    Likes Received:
    0
    Location:
    California
    Sweet. Thanks!

    Is there a way to also include the file names of subdirectories into a text file?
     
  5. Peyomp

    Peyomp New Member

    Joined:
    Jan 11, 2002
    Messages:
    14,017
    Likes Received:
    0
    ls -R > blaggo.txt
     
  6. Gimik

    Gimik New Member

    Joined:
    Sep 16, 2003
    Messages:
    36,559
    Likes Received:
    0
    Location:
    Feenicks, Az
    Dir Directoryname /S > Filename.txt
     
  7. Zak8022

    Zak8022 New Member

    Joined:
    Apr 16, 2004
    Messages:
    4,012
    Likes Received:
    0
    Location:
    Maryland
    ha... thats pretty cool! i made the mistake of doing it on a folder that was rather high up on the folder structure... so it took a bit to generate. pretty sweet tho.
     
  8. kasuo

    kasuo BRICK NOT HIT BACK

    Joined:
    Dec 30, 2005
    Messages:
    895
    Likes Received:
    0
    Location:
    California
    :bowdown:
     

Share This Page