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

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
 
F

fzjr4n

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!
 
B

Brian P. Hammer

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top