469,580 Members | 1,992 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,580 developers. It's quick & easy.

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

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



Jul 19 '05 #1
2 5842
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!
--
MARK TRUDGEON
fz****@unison.ie

This posting is provided "as is", with no warranties, and confers no rights.


"Karuppasamy" <Ka*******************@isoftplc.com> wrote in message
news:#u**************@tk2msftngp13.phx.gbl...
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


Jul 19 '05 #2
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
"Karuppasamy" <Ka*******************@isoftplc.com> wrote in message
news:%2****************@tk2msftngp13.phx.gbl...
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


Jul 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Steve Richter | last post: by
3 posts views Thread by Rajiv Das | last post: by
2 posts views Thread by Glen | last post: by
3 posts views Thread by rao | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.