locked
Download file from url? RRS feed

  • Question

  • I have an application that downloads a file from an url (webclient). This seemed to work on windows xp, however on windows 7 it did not, I guess there are new restrictions on windows vista? Does this method even work or whats the deal. Anyhow this is the code:

    //WebClient myClient = new WebClient();
                //string hits = @"c:\*****";
                //myClient.DownloadProgressChanged += new DownloadProgressChangedEventHandler(ProgressChanged);
                //myClient.DownloadFileAsync(new Uri("http://*********"), hits);
                //myClient.DownloadFileCompleted += new AsyncCompletedEventHandler(Completed);

    Thanks in advance.

    Regards.

    Thursday, October 21, 2010 1:48 PM

Answers

  • I guess that you're facing the fact that the C:\ main folder is protected in Windows 7

     


    Success
    Cor
    • Proposed as answer by SWR1988 Thursday, October 21, 2010 2:14 PM
    • Marked as answer by Noxrawr Thursday, October 21, 2010 4:34 PM
    Thursday, October 21, 2010 2:01 PM

All replies

  • I guess that you're facing the fact that the C:\ main folder is protected in Windows 7

     


    Success
    Cor
    • Proposed as answer by SWR1988 Thursday, October 21, 2010 2:14 PM
    • Marked as answer by Noxrawr Thursday, October 21, 2010 4:34 PM
    Thursday, October 21, 2010 2:01 PM
  • Do the lines actually start with two slashes?
    Thursday, October 21, 2010 2:04 PM
  • Obviously those slashes will be removed when I recompile the program to be used again ^^, thanks Cor that was the answer I was looking for. WHat other folders are actually protected on windows vista?
    Thursday, October 21, 2010 2:09 PM
  • When i google protected folders windows 7 I only get as results "password protected", so if someone could tell me which folders are protected by windows vista it would prevent me from comitting the same mistake again.

    Thanks in advance.

    Regards.

    Thursday, October 21, 2010 5:30 PM