How to copy folders to another location while adding the paths to a listbox?
Posted on 2006-11-05
Hi my friends!
Here's what I would like to do >
By a buttonclick I want to pop up the browseforfolder dialog and copy the selected folder + contents to another predefined location while adding the path to a listbox.
My predefined location will be: D:\Data.
My listbox is empty.
I select the folder C:\Blahblah and then its contents is copied to D:\Data\Blahblah and my listbox holds one item > D:\Data\Blahblah. Adding or deleting an item from the listbox should result in adding or deleting the folder it references.
Ofcourse I could also first copy all folders to the D:\Data folder and afterwards collect the references and feed them to the listbox. What would be teh best approach?
Ps working samples do the trick..
Oh btw > Afterwards I want all the references in a comma seperated list.