Share via

How do I print the list of files in a folder?

Anonymous
2018-06-20T17:06:46+00:00

I don't want to print all the files, just the list of the file names. Thanks.

Windows for home | Windows 10 | Files, folders, and storage

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

6 answers

Sort by: Most helpful
  1. DaveM121 868K Reputation points Independent Advisor
    2018-06-20T17:50:38+00:00

    Hu Jutta, you can do that with Command Prompt . . .

    Open a Command Prompt window

    Navigate to the folder you you want a listing of

    Then use one of the following commands to create a text file in that folder with the listing and you can print that out:

    dir > printit.txt will print a list of the files, with full file path

    dir /b > printit.txt will print only the file names

    dir /o:d > printit.txt will sort the files by date

    80+ people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2018-06-20T23:42:47+00:00

    If you just want a printed listing of what’s inside a folder, here’s what you do.

    Open the Command Prompt.  To do that, click Start, type CMD, then right-click Run as administrator.
    
    Change the directory to the folder you want to print the contents of. To do that, use the cd command—for example, “cd c:\users\yourusername\documents”.
    
    Type the following command and hit Enter: dir > listing.txt
    

    This will generate a basic text file listing the contents of the directory. The filename you save can be anything you want. You can call it listing.txt, files.txt, folder.txt or whatever.

    This is what it looks like:

    If you want to go a step further, you can print the contents of subfolders by issuing the following command: tree “c:\directory_name” > “c:\file_name.txt” /A /F

    TIP: On the command line, using “>” will always send the output of the command to a file. It works with any command. You can also use “>>” to append the output to the end of an existing file.

    Source:

    https://www.groovypost.com/tips/print-contents-...

    Note: This is a non-Microsoft website. The page appears to be providing accurate, safe information. Watch out for ads on the site that may advertise products frequently classified as a PUP (Potentially Unwanted Products). Thoroughly research any product advertised on the site before you decide to download and install it.

    30+ people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2018-06-20T17:08:16+00:00

    I use snipping tool and take a screengrab of what i need then print that.

    That's the fastest and easiest way.

    Does that help?

    10+ people found this answer helpful.
    0 comments No comments
  4. Anonymous
    2018-06-20T17:15:43+00:00

    Thanks for your fast reply. I can do the screen capture, I was hoping for a more "elegant" solution. Apparently, there's a process to add a "Print Directory" feature. I'm looking into it.

    6 people found this answer helpful.
    0 comments No comments
  5. Pauli O 15,375 Reputation points Volunteer Moderator
    2018-06-20T17:57:43+00:00

    Try this old method:

    Open CMD and go to folder from where you want that list and give command:

    Dir >C:[folder you have write access]\Listing.txt

    Dir > create new file

    Dir >> append to existing file

    More options Dir /?

    5 people found this answer helpful.
    0 comments No comments