How can I list the folders, sub-folders & file names into a txt file?


  1. Posts : 2
    Windows 7 Pro 64 bit
       #1

    How can I list the folders, sub-folders & file names into a txt file?


    How am I able to list all the files & sub-folders into a text file? Need to document listings of files. could once do this in DOS but not sure if can anymore
    Thx!
      My Computer


  2. Posts : 71,975
    64-bit Windows 11 Pro for Workstations
       #2

    Hello Rico, and welcome to Seven Forums.

    Using OPTION TWO in the tutorial below may work for you for this.

    Context Menu - Add View and Print File Directory - Vista Forums

    Hope this helps,
    Shawn
      My Computer


  3. Posts : 9,582
    Windows 8.1 Pro RTM x64
       #3

    Sure, from a command prompt. Enter the following, at the prompt (you will need to provide both source and destination paths):

    dir source /s >> destination.txt

    e.g. dir c:\ /s >> "c:\users\<username>\desktop\list.txt"
      My Computer


  4. Posts : 2
    Windows 7 Pro 64 bit
    Thread Starter
       #4

    Great! thanks for the help. So Simple! . Didn't try the 1st solution, but will try it later. Glad those old DOS commands still work!

    Regarding the dir command, using it in the active directory & gives me the file list (what I want) in the active.
    dir /s >> list.txt
    list.txt is placed in the active dir.
    Muchas Gracias!
      My Computer


  5. Posts : 71,975
    64-bit Windows 11 Pro for Workstations
       #5

    Glad we could help. :)
      My Computer


  6. Posts : 176
    Win 7 Ult 64-bit
       #6

    There is a free portable program FileDir - I am using it for a long time an it still works fine.
      My Computer


  7. Posts : 5,642
    Windows 10 Pro (x64)
       #7

    *cough* "tree /A /F > tree.txt" also works.
      My Computer


 

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

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