Thursday 29th of July 2010

How To Print Out A List Of All Files In A Folder

December 16, 2008 by Ivan  
Filed under Articles, Hacks

In this simple tutorial, I´ll show you how to print out a list of files in a folder. There is plenty of shareware programs which can do this, but I think that the simplest way to do this is with using Command Promt ( cmd).

1. Go to Start, then click Run. In Run option type cmd and click OK.

2. After this will open cmd.exe ,find folder which you want to print out with cmd, If you do not know how to move through the directories using cmd, see this post: How to find directories with cmd.

3. When you find specified folder, with this command dir > list.txt, you´ll create text document with list of files.

Example:

I want to print list of all files in folder with path E:\movies
In cmd I´ll write E: and press enter , then write cd and with TAB find folder movies and press enter . Then write dir > list.txt In folder with path E:\movies I will find text document list. txt . Open that text document and print out. It looks like this

cmd

After this list.txt created in E:movies
list of files cmd

List.txt looks like this



Best of PC Hacks

Related Posts



You can get our articles in your email inbox each day for free. Just enter your email below:

FeedBurner

Comments

12 Comments on "How To Print Out A List Of All Files In A Folder"

  1. Geoserv on Wed, 17th Dec 2008 12:30 am 

    STUMBLED!

    Great tutorial, thanks for sharing.

  2. Ivan on Wed, 17th Dec 2008 2:34 pm 

    Thanks

  3. Tutorials Room on Thu, 1st Jan 2009 7:07 pm 

    Good Tutorial! It was chosen for the home page of http://www.tutorialsroom.com

    Waiting for your next tutorial :)

  4. midhunhk on Fri, 2nd Jan 2009 4:34 am 

    To get just the file names and not the details of the files, u can use this :

    type in this at the prompt

    dir /b > filelist.txt

    dir is the list directories command
    /b is the bare bones option which excludes all the additional information
    > filelist.txt is the key here . instead of putting the output to the screen, it redirects to the filename specified after it

  5. GMR on Tue, 3rd Feb 2009 3:56 am 

    This is the best! I’ve tried with .bat files registry issues, etc. This is so simple and works great!
    Thanks Ivan!

  6. sanjay on Sun, 22nd Feb 2009 6:32 am 

    thanks you so much budy……….

  7. Sam on Fri, 3rd Apr 2009 3:41 am 

    How do you get it to filter out certain files for example, only show .avi files within the directory?

  8. Ivan on Fri, 3rd Apr 2009 7:06 am 

    @Sam
    To get just avi files , you can use this :
    dir *.avi /b >filelist.txt

  9. T.Sankarganesh on Fri, 10th Apr 2009 9:40 am 

    how to open the blocked web sites in my college?

  10. T.Sankarganesh on Fri, 10th Apr 2009 9:43 am 

    in my college the tutorial how to crack windows Xp was not open it was blocked.how to open that tutorial?

  11. sickley on Sun, 26th Apr 2009 7:04 pm 

    @Sankarganesh
    the first step is to buy windows xp
    the next step is to try to stop using blocked sites at your college

  12. Shumaker212 on Tue, 2nd Feb 2010 11:36 am 

    Nice tutorial but it may take much time do this, what if we use a tool to Print Directory Listings, as i use a tool Called Print Directory.

Tell us what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!