Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dump file names into a text file?

Status
Not open for further replies.

jasonduerr

Technical User
Jun 3, 2002
2
US
Hello,,,

How can I take a directory, and get a text file of all the file names?

I need this because I want a text list of numerous mp3's in a directory.

This is one of the few cases that I get to say "Well, I know how in UNIX".

Thanks,
Jason
 
jasonduerr,

@echo off
chdir c:\temp
dir /OD >> c:\temp\temp.log

just put the 3 above lines into a bat file
where temp is the directory where the files are and temp.log is your text file. should do the trick for you.


regards,

longhair
 
Thanks for the solutions everyone!
I appreciate your advice.


-Jason
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top