Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Problem with Vista

Problem with Vista

Scheduled Pinned Locked Moved Visual Basic
csharphelptutorial
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • Q Offline
    Q Offline
    quioske
    wrote on last edited by
    #1

    Hi i have developed an application in vb.net i am creating directories at runtime in c:\programfiles\ it is possible in Windows XP. But in vista, it is creating a problem. it is not creating a directory. i think it is problem of permissions. does any one knows how to set permissions to a folder in Vista to create directory and file under that folder.

    M 1 Reply Last reply
    0
    • Q quioske

      Hi i have developed an application in vb.net i am creating directories at runtime in c:\programfiles\ it is possible in Windows XP. But in vista, it is creating a problem. it is not creating a directory. i think it is problem of permissions. does any one knows how to set permissions to a folder in Vista to create directory and file under that folder.

      M Offline
      M Offline
      Mitch F
      wrote on last edited by
      #2

      The user will have to right click the program and select "Run as Administrator", or your application manifest file will have to request Administrator Privileges at runtime. This is also assuming that the account that the user is running the application from has Administrator privileges. Both of the above options will also pop up the ugly UAC dialog boxes. All in all, I would suggest you find a way to program your application without it needing Administrator privileges. I hope this helps.

      Q 1 Reply Last reply
      0
      • M Mitch F

        The user will have to right click the program and select "Run as Administrator", or your application manifest file will have to request Administrator Privileges at runtime. This is also assuming that the account that the user is running the application from has Administrator privileges. Both of the above options will also pop up the ugly UAC dialog boxes. All in all, I would suggest you find a way to program your application without it needing Administrator privileges. I hope this helps.

        Q Offline
        Q Offline
        quioske
        wrote on last edited by
        #3

        Thanks Mitch I have managed the code and now its running correctly

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups