Extract names of items of some folder


  1. Posts : 32
    Windows 7 ultimate x86
       #1

    Extract names of items of some folder


    Hi friends.
    Could you introduce me a software that can extract the names of items of a folder and save it somewhere for example in a txt or doc or another type of file?

    Cheers
      My Computer


  2. Posts : 966
    Windows 7 Enterprise
       #2

    You can do this with the dos command 'dir' and pipe ( > ) it to a txt document in the same folder.
    Such as to get content listing of your musics folder, open the folder in command prompt (rclick, open command prompt here), then type:
    dir > list.txt
    You can also filter it for specific extensions:
    dir *.mp3 > list.txt
    and troll through subfolders with the /s switch
    dir /s *.mp3 > list.txt
    type dir /? for more info on that command if you are unfamiliar with it.
      My Computer


  3. Posts : 12,012
    Windows 7 Home Premium SP1, 64-bit
       #3

    DOS??

    My DOS skills have atrophied.

    What was it?

    dir>prn

    Something like that.

    Or maybe:

    Go to folder and open a DOS prompt. Type "dir /b > dir.txt" (without the quotes) and hit enter. This will put a list of the contents of the folder in a file called dir.txt, which you can print by loading it into Notepad, Word, Excel etc.

    Or maybe:

    Karen's Directory Printer
      My Computer


  4. Posts : 17,545
    Windows 10 Pro x64 EN-GB
       #4

    A couple more command examples.

    Make a list of all files in your Documents folder, sorting it alphabetically, leaving away dates and file sizes, not listing any folders. Save results to file Document.txt in your user folder:
    Code:
    dir C:\Users\YourUserName\Documents\ >C:\Users\YourUserName\Documents.txt /b /on /a-d
    Make a list of all files in your Videos folder and its subfolders, sorting it alphabetically with date and time when each file was last time accessed. Save results to file Videos.txt in your user folder:
    Code:
    dir C:\Users\YourUserName\Videos\ >C:\Users\YourUserName\Videos.txt /s /oe /ta
    Kari
      My Computer


  5. Posts : 32
    Windows 7 ultimate x86
    Thread Starter
       #5

    I appreciate you,friends.
    thank you
      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 07:58.
Find Us