Thursday, July 30, 2009

List directories or file names into a text file

Sometime you may want to have a list of folders or file names into a text file for other processing. A simple way is to use DOS command to list the folders/file names and then output to a text file instead of on the screen.

For example:
C:> dir *.* >> text.txt
C:>notepad text.txt

It is very easy and simple.

No comments:

Post a Comment