Getting a list of file names within a folder.

Associate
Joined
20 May 2006
Posts
1,068
Is it possible to get a list of all the file names within a folder? Instead of clicking on each individual file and copy / pasting the file name into note pad, is there a way of getting all the file names at once?

OS is Vista.
 
Start --> Run --> cmd

cd <your folder>

dir > C:\myfile.txt

or for all files including hidden: dir /a:h > C:\myfile.txt

notepad C:\myfile.txt
 
thanks for the fast replys guys.

I've hit a problem already however. I can't seem to change the directory, as the directory I'm wanting to create the list from is on another drive, it's not on C.

Is there a work around? Is it just me or can't you change drive within cmd
 
Got it! cheers guys...... thank god, that is so awesome. Would have taken me weeks to copy n paste every name hehe.

I'm no good with dos / cmd commands. :)
 
Back
Top Bottom