Results 1 to 4 of 4

Thread: [RESOLVED] Access denied

  1. #1

    Thread Starter
    Member
    Join Date
    May 2013
    Posts
    37

    Resolved [RESOLVED] Access denied

    I created a program in vb that counts the number of temp files in certain folders. The problem I'm having is when it gets to counting "c:/windows/temp/" it says access denied. The programs uac settings are set to highest level so it requires you to be an admin. Also, if I go this folder with my browser I can open it up with no problems. Can anyone help me with this glitch? Thank you
    Last edited by jmiller1225; Nov 28th, 2016 at 06:12 PM.

  2. #2
    Frenzied Member KGComputers's Avatar
    Join Date
    Dec 2005
    Location
    Cebu, PH
    Posts
    2,024

    Re: Access denied

    Check here as it might have something to do with Security/Ownership of folders.
    CodeBank: VB.NET & C#.NET | ASP.NET
    Programming: C# | VB.NET
    Blogs: Personal | Programming
    Projects: GitHub | jsFiddle
    ___________________________________________________________________________________

    Rating someone's post is a way of saying Thanks...

  3. #3
    Addicted Member
    Join Date
    Dec 2013
    Location
    Earth
    Posts
    230

    Re: Access denied

    Sometimes, running as administrator does the trick.

  4. #4

    Thread Starter
    Member
    Join Date
    May 2013
    Posts
    37

    Re: Access denied

    Thanks Everyone for the help. I think I figured Out the issue. I had to bring UAC Settings down to "requireadministrator" and save. Then go back in and change them back to "highestelevation" and save again. It seemed to fix the issue. Unfortunately I'm still having problems with some folders which can be accessed by CCleaner, but not by my program, but that's okay maybe in good time and self learning I'll get there Thanks again everyone

Tags for this Thread

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