End Google Ads 201810 - BS.net 01 -->
Hi All,
i'm looking to store files from a Folder that get a password to enter,this folder get a password (of course i insert the password ) because its deny access and to be canceled from person without permission so i'm looking how download files from that folder with C# .
Before i tried to download files but Visual Studio got an error: "Access Denied"!
Do you have any advice how download files from a Folder with Password or its impossible???
Thanks a lot
Nice Regards.
EDIT: I forget to post the code snippet how i download files from the folder
private List GetFolder(string Folder)
{
DirectoryInfo dir = new DirectoryInfo(Folder);
FileInfo[] files = dir.GetFiles("*.mp3",SearchOption.AllDirectories);
List str = new List();
foreach (FileInfo file in files)
{
str.Add(file.FullName);
}
return str;
}
private void Form1_Load(object sender, EventArgs e)
{
GetFolder(@"D:\\Music\\")
}
modified on Monday, April 13, 2009 2:55 AM
مواقع النشر (المفضلة)