How to print a list of files from a Windows directory

Posted on the January 4th, 2009 under Windows by admin

Click on Start, then Run. In the run dialogue box type cmd and click OK.

This will open a DOS prompt usually pointing to your users My Documents folder in Documents and Settings.

If you wanted to get to a folder called Movies on your E drive then you would type:

E: and then “cd Movies“. This is demonstrated in the image below.
List a Windows directory

To create the list then type “dir > movielist.txt” naming the text file anything you want. If you want to only export the file names without the file size details then use “dir /b > movielist.txt“. The movielist.txt file will be within the directory it has listed.

Share this Solution:
  • Digg
  • StumbleUpon
  • del.icio.us
  • Technorati
  • Google Bookmarks
  • Facebook
  • Live
  • Sphinn
  • Furl

Leave a Reply
XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>