Tito Onowu

Tito Onowu

  • NA
  • 37
  • 8.8k

Coping files to a directory

Nov 4 2013 2:45 PM
Good evening teachers. Could you please tell me why i can't copy two or more files to this directory. Thanks again for your relentless eye opener.
 DirectoryInfo myDr = new DirectoryInfo(@"G:\Elias");
            if (!myDr.Exists)
            {
                myDr.Create();
            }

            FileInfo myF1 = new FileInfo(@"G:\test9.txt");
            myF1.CopyTo(myDr.FullName + (@"\tet9.txt" + @"\test.xml"));
            //myDr.Delete(true );
            Console.ReadKey();

Answers (1)