I can copy files and folders but I have to do it individually. Here’s the code
string strOrigFile = somelocation1; //defined by user string strDestLoc = somelocation2; //defined by user // Get the filename only string strFileName = System.IO.Path.GetFileName(strOrigFile); // Determine the full destination path including filename string strDestFile = System.IO.Path.Combine(strDestLoc, strFileName); // Copy the file System.IO.File.Copy(strOrigFile, strDestFile);
How do I make it look for all the files in the Directory then copy them?
Thanks
Tony



Help
Back to top








