Dealing with UAC in Vista.

Trouble with I/O error.

Page 1 of 1

4 Replies - 2044 Views - Last Post: 09 June 2009 - 06:40 PM Rate Topic: -----

#1 papuccino1  Icon User is offline

  • His name was Robert Paulson.
  • member icon

Reputation: 63
  • View blog
  • Posts: 1,121
  • Joined: 02-March 08

Dealing with UAC in Vista.

Post icon  Posted 09 June 2009 - 05:51 PM

Hey guys,

My project tries to download a .jpg file to a users disc and everything works dandy in Windows XP. In Vista however, I get an error about I/O retrictions. If UAC is turned off, it appareantly works as intended, but that isn't the case with most users.

I guess my question is: What location in the disc exists in both Windows XP and Windows Vista, and is free to I/O?
Is This A Good Question/Topic? 0
  • +

Replies To: Dealing with UAC in Vista.

#2 lesPaul456  Icon User is offline

  • D.I.C Addict
  • member icon

Reputation: 174
  • View blog
  • Posts: 729
  • Joined: 16-April 09

Re: Dealing with UAC in Vista.

Posted 09 June 2009 - 06:22 PM

I'm not positive, but I think you can write to certain directories and not have any problems with UAC. I think one of these files is MyDocuments.
You can get the path to the user's MyDocuments folder by using this code:
Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);



I think you can also use the Application Data file (AppData in Vista).

Again, I'm not positive (I have UAC turned off on my computer), but I think I remember reading this somewhere.

This post has been edited by lesPaul456: 09 June 2009 - 06:28 PM

Was This Post Helpful? 1
  • +
  • -

#3 papuccino1  Icon User is offline

  • His name was Robert Paulson.
  • member icon

Reputation: 63
  • View blog
  • Posts: 1,121
  • Joined: 02-March 08

Re: Dealing with UAC in Vista.

Posted 09 June 2009 - 06:27 PM

So I would save that FolderPath to a string and use that as my "location" variable? Thanks lesPaul, you're the best. :D
Was This Post Helpful? 0
  • +
  • -

#4 eclipsed4utoo  Icon User is offline

  • Not Your Ordinary Programmer
  • member icon

Reputation: 1533
  • View blog
  • Posts: 5,972
  • Joined: 21-March 08

Re: Dealing with UAC in Vista.

Posted 09 June 2009 - 06:35 PM

we talked about this in one of your other threads. Anything under the "C:\Documents and Settings\[username]" will have read/write/delete permissions.
Was This Post Helpful? 0
  • +
  • -

#5 papuccino1  Icon User is offline

  • His name was Robert Paulson.
  • member icon

Reputation: 63
  • View blog
  • Posts: 1,121
  • Joined: 02-March 08

Re: Dealing with UAC in Vista.

Posted 09 June 2009 - 06:40 PM

This topic is solved! :)
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1