Download files from a folder with password [modified]
C#
1
Posts
1
Posters
0
Views
1
Watching
-
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<string> GetFolder(string Folder)
{DirectoryInfo dir = new DirectoryInfo(Folder); FileInfo\[\] files = dir.GetFiles("\*.mp3",SearchOption.AllDirectories); List<string> str = new List<string>(); 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