Using File.OpenDialog how can i make a copy of selected files to a certain (predeclared or even better from a string variable taken from textbox) location? I assume i can firstly simply use the ofd method, but where to determine the location to copy?
InitializeComponent();
PopulateTreeView();
this.treeView1.NodeMouseClick +=
new TreeNodeMouseClickEventHandler(this.treeView1_NodeMouseClick);
OpenFileDialog ofd1 = new OpenFileDialog();
and for the button:
private void button3_Click(object sender, EventArgs e)
{
if (ofd1.ShowDialog() == DialogResult.OK)
{ }
}
Check out the foreach loop in this for iterating through all of the files you selected using the OpenDialog.
I think this is what you're looking for in regards to actually copying the files. It takes a source directory and copies to the destination you provide.