Hi guys,
I would like to populate a treeview with the content on my disk. I would like to browse to a folder and the selected folder should be the "root node". Then I want to populate the content of the directory in my treeview. It must list all folders, sub-folders
and files within all folders in JUST the treeview. I dont want to load the files "on demand" as I click on the nodes. It must just populate the treeview with all the folders and all the files. Ill put in a little "Please Wait" dialog while it loads.
I would like to make a "snap-shot" of my directory structure and write all the folders and files to a single treeview. (Maybe write the content to an XML file for later use...) Then I want to install an application and take another "snap-shot". Then I want
to compare the two treeview controls (or perhapse XML files) and see which files has been updated (Version and size) and have the changed/new files display in a different color. (Almost like how you would compare two directory structures using "Beyond Compare"
I suppose.)
Thus far, I can only browse for my target directory and I call the "DirectoryInfo" and "FileInfo" using the "System.IO" namespace. But, the way it works currently, it only lists the directories and files in the selected directory. I want
it to loop through the entire directory structure showing me all directories, sub-directories and files in the treeview.
Any help would be GREATLY appreciated.
Kind regards.
Willem
View the full article
I would like to populate a treeview with the content on my disk. I would like to browse to a folder and the selected folder should be the "root node". Then I want to populate the content of the directory in my treeview. It must list all folders, sub-folders
and files within all folders in JUST the treeview. I dont want to load the files "on demand" as I click on the nodes. It must just populate the treeview with all the folders and all the files. Ill put in a little "Please Wait" dialog while it loads.
I would like to make a "snap-shot" of my directory structure and write all the folders and files to a single treeview. (Maybe write the content to an XML file for later use...) Then I want to install an application and take another "snap-shot". Then I want
to compare the two treeview controls (or perhapse XML files) and see which files has been updated (Version and size) and have the changed/new files display in a different color. (Almost like how you would compare two directory structures using "Beyond Compare"
I suppose.)
Thus far, I can only browse for my target directory and I call the "DirectoryInfo" and "FileInfo" using the "System.IO" namespace. But, the way it works currently, it only lists the directories and files in the selected directory. I want
it to loop through the entire directory structure showing me all directories, sub-directories and files in the treeview.
Any help would be GREATLY appreciated.
Kind regards.
Willem
View the full article