PDA

View Full Version : Getting a txt list of directory contents?


MrUnexpected
10-11-2005, 06:49 PM
Is there an easy way to get a text list of all the files in a particular directory? How about a non-easy way?

djnes
10-11-2005, 09:09 PM
at a command prompt, navigate your way to the exact folder, and type the following:

dir >> list.txt

Phoenix86
10-12-2005, 10:16 AM
How about a non-easy way?
Print screen the directory listing out of explorer. Run OCR software and create a text file. Edit out the garbage so you have the output you want. :p

(do what djnes said, though he has an extra > in there the command "dir > file.txt" will work).

djnes
10-12-2005, 10:17 AM
Print screen the directory listing out of explorer. Run OCR software and create a text file. Edit out the garbage so you have the output you want. :p

(do what djnes said, though he has an extra > in there the command "dir > file.txt" will work).
That extra > makes it go faster, because you're telling DOS you mean business!!!!! :D

Fint
10-12-2005, 10:45 AM
one > means to over-write, two >>'s mean to append (or create if the file doesn't exist already).