locked
convert "My.Computer.FileSystem.CopyFile(..." to C#.net RRS feed

  • Question

  • User-1210839387 posted

    using C#.net 2010

    I'm new to C# and have some vb.net code to convert, does anyone know hhow I would convert the following to C#?

    C# does not recognize the "My.Computer" part of it.

    thanks!

     My.Computer.FileSystem.CopyFile(Source_File, Destination_File, True)
    Thursday, December 22, 2011 10:35 AM

Answers

  • User1508394307 posted
    using System.IO;
    
    File.Copy(Source_File, Destination_File, true);  
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, December 22, 2011 10:39 AM

All replies

  • User1508394307 posted
    using System.IO;
    
    File.Copy(Source_File, Destination_File, true);  
    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Thursday, December 22, 2011 10:39 AM
  • User-1210839387 posted

    thats it. thanks!

    Thursday, December 22, 2011 10:42 AM
  • User-483078781 posted

    Microsoft.VisualBasic.FileIO.FileSystem.CopyFile(.......)

    Tuesday, July 30, 2013 12:20 AM