Tech NovoGeek

...Technology Simplified

Thursday, February 18, 2010

How to retrieve all the file names from a folder at a time

No comments :
Many of us come across such situation when u need to document teh details of every file in excel

If ur folder exists in D:\
"Anu" is the folder name

Go to Command prompt

Start menu --> Run --> cmd

>D:
D:\>dir /b *.*

It will display all files with in that particular folder
But to get all those file names into any excel file specify the path
or file name (if path not specified then thsi file will be genarated ib same folder where files exists )

D:\>dir /b *.*

So thats so simple to get file names at a time