Printing a list of files that are on a flashdrive
Results 1 to 4 of 4

Thread: Printing a list of files that are on a flashdrive

  1. #1
    Join Date
    Mar 2017
    Posts
    14

    Printing a list of files that are on a flashdrive

    Hi. I'm wondering if there is software to generate a list of files on a flashdrive that can be printed out. Or how can this be done if at all?
    Thank you!

  2. #2
    Join Date
    Feb 2000
    Location
    Idaho Falls, Idaho, USA
    Posts
    17,484
    The simple way to do this without the need for any additional software is to export the results of a DIR command to a text file. You can then use Notepad, Wordpad, Word, or any other software of your choice to edit and format the text file for printing.

    Open a Command Prompt window and enter the following command:

    Code:
    dir F: > C:\Users\{UserName}\Documents\FFiles.txt
    Replace F: with the drive letter of the flash drive you want to get the contents of.

    Replace the first F in the FFiles.txt file name with the drive letter of the flash drive.

    Note:

    If you have folders and/or subfolders on the flash drive, you will need to modify the command, as in the example below:

    Code:
    dir F:\Folder > C:\Users\{UserName}\Documents\FFolderFiles.txt
    Useful links:

    https://www.groovypost.com/tips/prin...er-windows-10/

    https://www.computerhope.com/issues/ch000772.htm

    https://helpdeskgeek.com/how-to/redi...-to-text-file/

    https://www.howtogeek.com/98064/how-...ing-to-a-file/

    https://smallbusiness.chron.com/copy...ist-40032.html

    https://www.digitalcitizen.life/how-...older-windows/

    https://www.howtogeek.com/363639/how...nd-in-windows/

    https://docs.microsoft.com/en-us/win...s-commands/dir

    https://www.computerhope.com/dirhlp.htm

    https://www.lifewire.com/dir-command-4050018

    https://en.wikipedia.org/wiki/Dir_(command)

  3. #3
    Join Date
    Mar 2017
    Posts
    14
    Excellent! I will give this a try. Thank you for your help, I appreciate it!

  4. #4
    Join Date
    Mar 2009
    Location
    Arkham Asylum, Cell 13
    Posts
    11,491
    If you only want the file names, you can add some switches to the dir command.

    /O:N = name
    /s = subfolders
    /b = bare (only name)

    So for jdc2000's command:
    dir F: /O:N /s /b > C:\Users\{UserName}\Documents\FFiles.txt

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •