View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Satish Satish is offline
external usenet poster
 
Posts: 37
Default Nested directories from Treeview

Hi All:

I would like to know if there is a simple and efficient way to create
folders on a selcted drive (or location) based on the structure that is
present in a Treeview.

I basically have the Treeview created. The only thing the user has to
do is select a drive (or location) and click a button that will create
the folders with all the subfolders at the specified location. All the
folder names have to be taken from the Treeview nodes. (text of the
nodes)

I was thinking of using the MkDir statement with recursive calls
(probably recursion is the only way to get all nodes in a Treeview),
but I am not sure if that is the correct or most efficient way.

Any ideas/thoughts?

Thanks
Satish