Link to home
Start Free TrialLog in
Avatar of bsharath
bsharathFlag for India

asked on

Get all the txt file names into a excel from the path mentioned with all sub folders too.

Hi,

Get all the txt file names into a excel from the path mentioned with all sub folders too.

D:\Software
In the path i have 40 + folders and each folder has 10000's of files. Need to get all txt files into a  colum in an excel.

regards
sharath
ASKER CERTIFIED SOLUTION
Avatar of ahammar
ahammar
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Dave
Dave
Flag of Australia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you have 10,000+ files in each of the 40 folders, then, you must use Excel 2007 to get all the data into one column because Excel 2003 has a limit of +/- 65,000 rows. This is something that you have to be aware...

jppinto
Avatar of bsharath

ASKER

Thank you Albert and Dave
Both work perfect. but alberts script as it records other info is slower than Dave's provided script. but both work.. :-)
Thanks for points and the grade!

:-)
Albert
Seconded :)