I have to set password protection to that folder while creating dynamically

Posted by Anandbabaum under C# on 6/16/2014 | Points: 10 | Views : 294 | Status : [Member] | Replies : 1
My requirement is in windows desktop application I have to create a folder and download files from database to that folder.I have to set password protection to that folder while creating dynamically.

string[] FileName = lblPath.Split('.');
FullFileName = lbFileName + '.' + FileName[1];
string s =@"C:\SriGayatriLearning\";
// string s22 = @"C:\SriGayatriLearning\";
DirectoryInfo dir = new DirectoryInfo(s);
if (!dir.Exists)
{
Directory.CreateDirectory(s);
}
s = s + FullFileName;
using (WebClient webClient = new WebClient())
{
webClient.DownloadFile(path, s);
}
Process proc = new Process();
proc.StartInfo.FileName = s;
proc.Start();




Responses

Posted by: Anandbabaum on: 6/17/2014 [Member] Starter | Points: 25

Up
0
Down
Hi,
Anybody Please help me to find a solution for this task.
Thank you

Anandbabaum, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response