User Tools

Site Tools


howtocreatealistoffilesinadirectory

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

howtocreatealistoffilesinadirectory [2013/01/27 21:29] (current)
Line 1: Line 1:
 +====== How to create a list of files in a directory ======
 +Open a command prompt window, browse to the desired directory and type:
 +<​file>​
 +dir /A-D /B >> c:​\filename.txt
 +</​file>​
 +where filename is the desired name of the list.
  
 +Alternatively,​ this will create a list of folders:
 +<​file>​
 +dir /AD /B >> c:​\filename.txt
 +</​file>​
 +
 +===== Adding to Explorer'​s Context Menu =====
 +  * [[http://​forums.pcpitstop.com/​index.php?/​topic/​158901-how-to-print-a-folder-file-list-from-windows-explorer/​|http://​forums.pcpitstop.com/​index.php?/​topic/​158901-how-to-print-a-folder-file-list-from-windows-explorer/​]]
 +  * [[http://​support.microsoft.com/​kb/​321379|http://​support.microsoft.com/​kb/​321379]]
 +
 +===== More help =====
 +[[http://​www.computerhope.com/​issues/​ch000772.htm|http://​www.computerhope.com/​issues/​ch000772.htm]]
 +
 +-- Main.FredPettis - 2012-02-10
howtocreatealistoffilesinadirectory.txt ยท Last modified: 2013/01/27 21:29 (external edit)