I thought to write like this:
var task1 = Task.Factory.StartNew(() => { File.Copy(Path,NewName1, true); }); var task2 = Task.Factory.StartNew(() => { File.Copy(Path,NewName2, true); }); But it beats the exception that the file is occupied by another process: Anonymous of type System.IO.IOException mscorlib.dll but the process could not access the file "D: \ output \ log4 .txt "because this file is being used by another process. Is it possible or some options to simultaneously copy the file in different ways? Or are there any options to speed up this process? Thank.
NewName? Show the real code. - VladD