CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 8 of 8
  1. #1
    Join Date
    Dec 2007
    Posts
    50

    Question Open windows folder

    I tried to open C:\windows\ but failed due to authentication problem, could you help me please ?
    I 'd like to read it into the treeview only

    Thanks

  2. #2
    Join Date
    Dec 2007
    Posts
    50

    Re: Open windows folder

    i am using Vista btw

  3. #3
    Join Date
    Dec 2007
    Posts
    50

    Re: Open windows folder

    ?????????? I guess no one knows the answer

  4. #4
    Join Date
    Apr 2006
    Posts
    220

    Re: Open windows folder

    Tell us which class and namespace you are using to accomplish your task.

  5. #5
    Join Date
    Nov 2007
    Posts
    28

    Re: Open windows folder

    Does reading a folder into a treeview need a special namespace ?
    It sounds to me that you want him to use a class rather than that he wants himself to use a class.

  6. #6
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: Open windows folder

    This is NOT a C-Sharp issue. It is a Vista "issue".

    General Users CAN NOT open the Windows Folder if AUC is enabled.

    This is by design as accessing this folder can have negative consequences.
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

  7. #7
    Join Date
    Dec 2007
    Posts
    50

    Re: Open windows folder

    Thanks everyone for your answers

    To nabeelisnabeel
    I use
    System.IO;
    System.Diagnostics;
    System.Collections;

    To TheCPUWidzard

    Do ou know hwo I can turn it off ?

  8. #8
    Join Date
    Mar 2002
    Location
    St. Petersburg, Florida, USA
    Posts
    12,125

    Re: Open windows folder

    Quote Originally Posted by Chipmunk Baby
    \To TheCPUWidzard

    Do ou know hwo I can turn it off ?
    Yes I do, but I will not post it here. UAC is a vital part of the systems security. Attempts to defeat (disable) it are NOT recommended.

    A much better quesdtion is WHY you would ever want to display the contents of that folder to a general user....
    TheCPUWizard is a registered trademark, all rights reserved. (If this post was helpful, please RATE it!)
    2008, 2009,2010
    In theory, there is no difference between theory and practice; in practice there is.

    * Join the fight, refuse to respond to posts that contain code outside of [code] ... [/code] tags. See here for instructions
    * How NOT to post a question here
    * Of course you read this carefully before you posted
    * Need homework help? Read this first

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured