using System.IO;
using System;
string path1=@"E:\ROS-VPN\winbox.exe";
string path2=@"E:\ROS-VPN\box.exe";
File.Copy (path1 path2);(在控制台环境下的)

解决方案 »

  1.   

    -_-!!!!!!
    File.Copy(path1path2); 
      

  2.   

    很好 很强大
    using System;
    using System.Collections.Generic;
    using System.Windows.Forms;
    using System.IO;namespace WindowsApplication1
    {
        static class Program
        {
            /// <summary>
            /// アプリケーションのメイン エントリ ポイントです。
            /// </summary>
            static void Main(string[] args)
            {
                string path1 = @"E:\ROS-VPN\winbox.exe";
                string path2 = @"E:\ROS-VPN\box.exe";
                File.Copy(path1, path2);
            }
        }
    }