kcwallace
Well-known member
Can someone point me to a solution for copying files accross two volumes?
I am using the code below. You can see the iterations I tried.
I am using the code below. You can see the iterations I tried.
C#:
foreach (DirectoryInfo diNext in dirs)
{
if (diNext.LastWriteTime < cutOffDate)
{
//dinext.Move(fromPath + diNext.Name, toPath + diNext.Name);
//diNext.MoveTo(toPath + diNext.Name);
Directory.Move(fromPath + diNext.Name, toPath + diNext.Name);
}
}