i have folder A which contains the following files ( hello.txt,hi.txt,dog.text) i only wany to move hello.txt and hi.txt into folder B.
how do i specify the folder names that i want to move
the following is my code. the problem is i dont want to move all txt files and i want to move it if the file size changes
{
string[] dbfFiles = Directory.GetFiles(sourcefile,"*.txt");
foreach (string f in dbfFiles)
{
string fName = f.Substring(sourcefile.Length + 1);
File.Copy(Path.Combine(sourcefile, fName), Path.Combine(destinationfile, fName), true);
}
}