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 TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dir list into Excel

Status
Not open for further replies.

wiser3

Programmer
Jun 3, 2003
358
CA
I'm trying to get a large dir of file names into Excel. Sounds simple in theory, but the reality of getting a dir file list out of Windoze XP isn't easy. The best i've done is to open a command prompt and use the dir command. But i only end up with the last few dozen files and in addtition to the names i get file size and stuff.

Isn't there an easy way to do something so simple?
 
I figured it out:

dir /ON /B *.* > C:/savetofile.txt "E:/wanteddir"
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top