populating all the files and folders of System in a Treeview control like Windows Explorer

  • Thread starter Thread starter Karuppasamy
  • Start date Start date
K

Karuppasamy

Hi

I want to populate all the files and folders of System in a Treeview control
like Windows Explorer.
I try this using File System Objects. But sometimes I am getting an error
like 'Access Denied".

Why am I getting an error like this?

How to populate the TreeView with Folders and files of the System?

Thanks and regards
Karuppasamy Natarajan
 
Hi Karuppasamy,

Just a question - Why do you want to load the System/System32 folder(s) and
its children into a tree view (or do you mean all folders in the system)?

If you mean all folders, then you are proberbly getting 'access denied' on
the personal folders of a user. When a user logs onto NT/W2K/XP, these
folders are created, access is then set for them only (even if you are
Admin). Things stored here are My Documents etc...

Hope this helps!
 
There is a good solution in the 101 VB.Net samples on the MSDN website.
Don't have the link but I am sure you can find it.

VB.NET - Windows Forms - Create an Explorer Style Application

BTW, why so many NGs selected for this post?

HTH,
Brian P. Hammer
 
Back
Top