a simple text file or csv will do.
I need a program that can export the listing to a file.
|
a simple text file or csv will do. I need a program that can export the listing to a file. |
|||
|
|
|
Karen's Directory Printer can print the name of every file on a drive, along with the file's size, date and time of last modification, and attributes (Read-Only, Hidden, System and Archive)! And now, the list of files can be sorted by name, size, date created, date last modified, or date of last access. Of course you can save to file instead of printing.
Karen's Directory Printer is freeware. Or run the DIR command from ColorConsole and then hit the button HTML or RTF
ColorConsole is freeware and portable. The JR Directory Printer utility (another portable freebie) allows you to print a listing of every subdirectory and/or file contained within a directory and/or subdirectory. It supports lowercase/dos style filename, file size in KB/bytes, attributes, custom file length, etc.
|
||||
|
|
|
Open a command prompt in the folder you want a listing of and type "dir > output.txt". There is an XP Powertoy that adds "Open Command Window Here" to the context menu when you right click on a folder name. It won't be pretty, but you can control the output. Type "dir /?" for a list of options.
|
||||
|
|
|
If you need a perhaps slightly 'prettier' version than if you used dir, you can do the following from the command prompt;
|
|||
|
|
|
Actually our friend the How To Geek has a nice little registry hack that can create you a context menu that does this for you. I use it quite regularly and it works on XP. It ends up looking like this:
The output looks like this:
|
||||
|
|
|
You can get a screen capture and possibly convert it to text using Snagit, or just open a Command Prompt and type:
This will produce a directory listing (the DIR command) and redirect its output to a text file called You can then open the text file in Excel, and use Tools -> Data -> Text to Columns to get it into a spreadsheet-readable format. |
||||
|
|
|
The answers already provided list what I was going to suggest initially, hopefully this answer will just solidify it:
... which prints out a recursive tree of the directory listing, including files (/f), and using an ASCII output (/a). Another option is the below, which will do a recursive (/s) listing in bare format (/b).
This has the added plus that it lists the full path for the files. Obviously, if you leave out the /s switch, it will also just generate for the current directory. You've already seen the output redirection as below, which redirects the standard output to the file:
Also available is >> which appends the output to the file:
|
|||
|
|
|
You can install Cygwin and use the Unix tools:
This will create a file called file.txt containing the contents of the directory. |
||||
|
|