Chris Williams
asked on
how to export folder and subfolder structure into an excel spreadsheet
I would like vb script / macro on exporting folder structure, including subfolders into an excel file. I do not necessarily need the folder names at this point. Just a file structure.
You could also use
dir /b /ad /s
/b - Bare. No headers etc
/ad Attribute directory (That's what folders used to be called ;-)
/s Subdirectory
Use
dir /b /ad /s >bigdirectorystructure.txt
To capture the results.
dir /b /ad /s
/b - Bare. No headers etc
/ad Attribute directory (That's what folders used to be called ;-)
/s Subdirectory
Use
dir /b /ad /s >bigdirectorystructure.txt
To capture the results.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
That's neat. :-)
I still use the tricks I learned before I knew any VB. :-)
The "dir /b /ad /s > folderstructure.txt" from the command prompt gets the results that end up in col B.
Cheers!
TRM
I still use the tricks I learned before I knew any VB. :-)
The "dir /b /ad /s > folderstructure.txt" from the command prompt gets the results that end up in col B.
Cheers!
TRM
ASKER
answer found on this site:
http://www.mrexcel.com/forum/showthread.php?t=526340
http://www.mrexcel.com/forum/showthread.php?t=526340
ASKER
Answer found on this site.
http://www.mrexcel.com/forum/showthread.php?t=526340
http://www.mrexcel.com/forum/showthread.php?t=526340
You coud try
tree /a >mytreetextfile.txt
and then open the text flie in Excel.