f.Title = "select file to copy";
if (f.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
string CopyTo = f.FileName;
FolderBrowserDialog b1 = new FolderBrowserDialog();
if (b1.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
string PasteTo = b1.SelectedPath + "//" + Path.GetFileName(f.FileName);
MessageBox.Show(b1.SelectedPath);
string path = PasteTo;
if (File.Exists(path))
{
MessageBox.Show("file already exisit");
}
else
{
File.Copy(CopyTo, PasteTo);
MessageBox.Show("File Copied to New Folder");
return;
}
}
else
{
// Throw error or alert
}
but it is not allowing me to select multiple files at a time open file dialogue control, only one compressed file is selecting,
What is the code that i have to write to select multiple files at a time and to copy them to target folder
Please give me solution , it is urgent to me to do it