Get filenames inside a folder

October 3, 2008

A simple command to get the list of file names in a directory to a text file.

In windows xp, go to command prompt : Click Start -> Run

then type cmd.

Go to the folder where the files are existing.

C:\>cd temp

then issue the command

C:\temp>dir /b > FileNames.txt.

The filenames will be available in the same folder within the text file “FileNames.txt”

Remember : the name “FileNames.txt” will also be available in the content.

Entry Filed under: tips and tricks. Tags: , .

Leave a Comment

Required

Required, hidden

Some HTML allowed:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <pre> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Trackback this post  |  Subscribe to the comments via RSS Feed


Archives

 

October 2008
M T W T F S S
« Aug   Nov »
 12345
6789101112
13141516171819
20212223242526
2728293031  

Pages