Exporting file names as a list

How can I export a list of file names or folder names off of a drive onto an excel spreadsheet?

Open up a command prompt (Start->Run->Cmd) and then navigate to the directory you want to list. Type the command

where c:\file.txt is the file you want to write to. Open up the file in Notepad and copy the contents into Excel.

will sort the names alphabetically, although you could easily do that in Excel.

Thanks much!