private void CopyAllFilesToButton_Click_1(object sender, EventArgs e)
{
folderBrowserDialog1.ShowDialog();
foreach (var item in files)
{
File.Copy(item, folderBrowserDialog1.SelectedPath);
}
}
Basically, i have a number of file paths. I want to copy each one to a specific folder. What i did, i added folderBrowserDialog from the toolbox and put it inside a button event.
It throws that awkward exception when it reaches File.Copy..why is that, and how can i prevent it?