Generating File Listings in Windows

Updated: May 5, 2004.

With a Mac it's easy to copy a list of files in a folder to a text document but difficult on Windows. Here is a way to do it.

In the command prompt type the name of the folder you want a list of and then the file you want to write the list to. So in this case we take the contents of "temp" and write it to a file called "filelist.txt". Here's how:


dir C:\temp > C:\filelist.txt


It's that simple. This is the result:

 Directory of C:\temp


04/13/2004  01:52 PM    <DIR>          .
04/13/2004  01:52 PM    <DIR>          ..
03/12/2004  12:39 AM         1,343,488 01929_comics-2 .04.mp3
08/19/1998  11:25 AM            47,124 ALABAS__.TTF
08/18/2003  01:29 PM    <DIR>          rasterproxies
03/10/2004  02:54 PM               126 test-export.tab
03/10/2004  02:52 PM               126 test-export.tab~
03/31/2004  07:15 PM               144 test2.tab
10/23/2003  04:28 PM    <DIR>          tm
10/23/2003  04:24 PM           196,781 tm.zip
               6 File(s)      1,587,789 bytes
               4 Dir(s)  12,923,981,824 bytes free