Results 1 to 7 of 7

Thread: How to make a list of files in a folder?

  1. #1
    Join Date
    Jul 2011
    Location
    Melbourne, Australia
    Posts
    4

    How to make a list of files in a folder?

    Hi, I'm trying to email someone a list of files in a folder (over 1500). I've tried using the following method in command prompt with no success:

    The Command Prompt will start with C:\something-or-other>
    Type CD space and paste the location of the folder
    Press Enter
    The new command prompt would look like this now and is ready for another command:
    C:\Users\Owner\Documents\Images for email>
    This bit above doesn’t work for me. I just get the C:\Something or other\> again. It just ignores the previous command. Is there something else I can do?


    After the > symbol type the command dir >filelist.txt
    Nothing much will appear to have happened but there should now be a file in the folder called "filelist.txt" Close the Command Window


    Any suggestions appreciated. I'm running Windows XP version 5.1.2600
    I've also tried running List File Generator from Softpedia, but it won't run on my system.

    Thanks.

  2. #2
    Join Date
    May 2008
    Posts
    4,085

    Re: How to make a list of files in a folder?

    You can download the a file below that provides a VBA template AddIn solution for the task of listing files and selected file data located in any folder and sub-folders. You could use it to create a list of files in your favorite folders, flash thumb drives, or floppy discs, download it from here.

  3. #3
    Join Date
    Jul 2011
    Location
    Melbourne, Australia
    Posts
    4

    How to make a list of files in a folder?

    Thanks Solomon, I've downloaded the Word add-in and all looks good when I open Word, I get the yellow dialog box and all looks as it should. But when I click Create List, I get a Runtime error 5151, so no luck there. If you've got another suggestion I'd be grateful.

    Ahhhh, but wait, I just tried a couple of different things and it's working now! Fabulous, thankyou!

  4. #4
    Join Date
    Jul 2011
    Location
    pennsylvania
    Posts
    5

    Re: How to make a list of files in a folder?

    try this.

    1. start -> run -> 'cmd' (without the ')

    2. go to the directory you want to go to.
    eg. 'cd c:\windows\system'

    3. type 'dir > 'filename.txt'
    for more options on the dir command tyoe 'dir /?'

    wow its been a while since touched dos!
    Last edited by joe.polkendare; 21-07-2011 at 12:16 AM.

  5. #5
    Join Date
    Jul 2011
    Location
    Melbourne, Australia
    Posts
    4

    Re: How to make a list of files in a folder?

    Thanks Joe, I can't see why this wouldn't work, but I just get the message that the system cannot find the path specified.

  6. #6
    Join Date
    Jun 2011
    Posts
    568

    Re: How to make a list of files in a folder?

    Hello its working for me I follow the same steps as it mentioned in above post. I think you are not following it appropriately. If you are getting the error like system cannot find the path specified then maybe you are attempting it with the some deleted file path which is not present in your system so just check that first. Maybe when you are going to the system file directory so at that moment that file or directory is not present there. So you have to ensure that first.

  7. #7
    Join Date
    Jul 2011
    Location
    Melbourne, Australia
    Posts
    4

    Re: How to make a list of files in a folder?

    Hmmmm, the path is definitely correct, it's not deleted. This does work for just my C drive, no other drive.

Similar Threads

  1. Replies: 2
    Last Post: 17-02-2011, 11:21 AM
  2. Replies: 3
    Last Post: 02-07-2009, 12:07 PM
  3. Print list of files in a folder
    By Hollow-man in forum Windows Software
    Replies: 3
    Last Post: 04-04-2009, 12:36 PM
  4. Where is my temp files folder & cookies folder?
    By aftab1 in forum Operating Systems
    Replies: 2
    Last Post: 05-11-2008, 12:58 PM
  5. Windows Explorer Slow to List Files When Browsing Folder
    By Paul Jenkins in forum Windows Server Help
    Replies: 3
    Last Post: 28-08-2008, 12:13 AM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Page generated in 1,713,423,828.59376 seconds with 17 queries