Page is a not externally linkable
- Microsoft
-- (deprecated) Microsoft Windows OS (XP/NT/Vista)
---- How do I download file names to MS Excel?


CaseyRyan - 2:06 pm on Jul 21, 2005 (gmt 0)


If I understand what you're trying to do correctly, You can use the dos command "dir".

From the command line, change to the directory that you want to get the files for.
Then type the following command:
dir /A-D /B >> C:\files.csv

The "/A-D" will exclude any directories that exist in that folder.
The "/B" will output the data as a bare format, meaning file names only.
The ">> C:\files.csv" will pipe the output of that data to a new file.

You can open the csv in excel.

If you want to do all the files in all the subdirectories you can throw a /S in the arguments, it will display the full paths of the files as well.

Another really cool command I forgot about in dos is "tree" command. It just looks cool but doesn't have anything to do with your question. :)

Anyway, hope that solves your problem.

-=casey=-


Thread source:: http://www.webmasterworld.com/microsoft_windows_os/244.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com