Trouble With Vista Permissions And Writing Files?

Joined
Jun 28, 2007
Messages
6
Location
/etc/passwd
Programming Experience
5-10
Hello, I have recently made the move from Visual Basic 6 (and previous versions) to the 2005 .NET scheme. I have been forced to switch as I am now running Windows Vista where as I had been using 98SE a few months prior. I'm having a horrible amount of trouble trying to implement the second parameter from the DownloadFile function found in the WebClient object.
The syntax should be correct, and I have checked multiple references online displaying examples using a basic file-path after the first parameter's initial URI string. Unfortunately I am continually being told that it is not able to write the data to the current path of the file, or even C:\. My code is as follows:

Dim RequestX As New WebClient
RequestX.DownloadFile(lstImages.Items(0).ToString, "c:\1.jpg")

The "C:\1.jpg" is just a test string, but it does not seem to save regardless of the input value. Do I need to enable my program to run as Administrator as I am creating it, or is there a way around this trouble? Any help would be greatly appreciated.
 
Back
Top