I have Visual Studio 11 (Windows 8 developer), I created a bootloader file:
string sUrlToReadFileFrom = "http://mysite/1.mp3"; int iLastIndex = sUrlToReadFileFrom.LastIndexOf('/'); string sDownloadFileName = sUrlToReadFileFrom.Substring(iLastIndex + 1, (sUrlToReadFileFrom.Length - iLastIndex - 1)); client.DownloadProgressChanged += new DownloadProgressChangedEventHandler(client_DownloadProgressChanged); client.DownloadFileCompleted += new AsyncCompletedEventHandler(client_DownloadFileCompleted); client.DownloadFileAsync(new Uri("http://mysite/1.mp3"), "C:\\Windows\\Temp" + "\\" + sDownloadFileName);
But it does not work! If I changed the folder "C: \ Windows \ Temp" to "E: \ Temp", start the download. Drive C: \ does not work, why? Can I save to temp folder or do you have another idea?
source share