VS 2010 : Copy A File To Folder?Aug 22, 2011
I'm trying to write a program where people can click a browse button, click a file to copy, and then click a second browse button and click a destination folder. I've tried
and get the error "Could not complete operation since a directory already exists in this path 'C:UsersSamDesktop'."
FileCopy TextBox1.Text, TextBox2.Text
gives me "The target file "C:UsersSamDesktop" is a directory, not a file."
Both methods work if I put C:UsersSamDesktop'filename'.'extension' in the destination. But I want the user to be able to select the destination without having to type a new file name.