Is there a way to extract all the file names in a directory into a text file?

psteng19

Diamond Member
Dec 9, 2000
5,953
0
0
I have hundreds, if not thousands of files, and I want to extract the filenames into a text file or spreadsheet.
Is this possible?

WinXP Pro
 

dighn

Lifer
Aug 12, 2001
22,820
4
81
try dir /b > files.txt

for more info, dir /? for help, just add the > files.txt part to redirect the output to a text file
 

psteng19

Diamond Member
Dec 9, 2000
5,953
0
0
Originally posted by: dighn
try dir /b > files.txt

for more info, dir /? for help, just add the > files.txt part to redirect the output to a text file

Excellent :thumbsup:
 

Drakkon

Diamond Member
Aug 14, 2001
8,401
1
0
I prefer KArens Directory Printer but if that worked for you then so be it :)