Share via

Export List of Files in an Explorer Folder

Anonymous
2010-05-19T22:48:06+00:00

How can I export a list of files located in a file folder to excel or to a text document? Preferably excel.

Thank you,

Tom

Windows for home | Previous Windows versions | 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
Answer accepted by question author
  1. Anonymous
    2010-05-20T14:10:26+00:00

    Hello Tom,

    You can simply paste the list into Excel, as follows:

    1. Open Windows Explorer and select the source folder in the left pane.
    2. Press Ctrl + A to select all items in the right pane.
    3. Press and hold the Shift key, then right click on the selection.
    4. From the context menu, choose "Copy as Path".
    5. Paste the list into Excel.

    Doug M. in NJ

    1700+ people found this answer helpful.
    0 comments No comments
Answer accepted by question author
  1. Anonymous
    2012-10-26T00:04:08+00:00

    You must have the directory you wish to list on your hard drive(not a network share although a mapped drive may work?

    Files should be displayed in the details format within the directory.

    1. type cmd into the start menu to bring up a dos prompt
    2. use the command (for instance)   "cd C:\Users\BobJones\Desktop\New folder" to navigate to the folder in question
    3. use the command "DIR > doggy.csv" to create a file named doggy.csv in the same directory that you can open directly with excel. Nothing much looks lik it is happening but you wuill find the small file as expected.

    Good Luck!

    200+ people found this answer helpful.
    0 comments No comments

39 additional answers

Sort by: Most helpful
  1. Anonymous
    2012-12-12T22:57:04+00:00

    Open a command prompt.

    Navigate to the folder containing the files using the cd command.

    Type: dir /b>filelist.txt

    A tekstfile named filelist.txt will appear in the directory, containing all the filenames.

    10+ people found this answer helpful.
    0 comments No comments
  2. Anonymous
    2015-02-26T22:33:31+00:00

    For the response tagged as most helpful, you can use "Ctrl+H" (Find and Replace) to delete the full path i.e.. c:\users\docs..... etc.

    I have another method that works best if you don't want the full path copied. 

    1. Copy the full path of the folder from within Windows Explorer
    2. Open a Web Browser (such as Internet Explorer, Chrome, Firefox, etc) and paste the folder path in the address bar and press enter.
    3. Copy and past the contents into Excel (suggest Past Special - Text)

    This works best for me in Chrome. The file name, size, and date modified into separate columns.

    10+ people found this answer helpful.
    0 comments No comments
  3. Anonymous
    2014-02-23T23:59:10+00:00

    For the response tagged as most helpful, you can use "Ctrl+H" (Find and Replace) to delete the full path i.e.. c:\users\docs..... etc.

    I have another method that works best if you don't want the full path copied. 

    1. Copy the full path of the folder from within Windows Explorer
    2. Open a Web Browser (such as Internet Explorer, Chrome, Firefox, etc) and paste the folder path in the address bar and press enter.
    3. Copy and past the contents into Excel (suggest Past Special - Text)
    8 people found this answer helpful.
    0 comments No comments