using System.IO;
using System;
string path1=@"E:\ROS-VPN\winbox.exe";
string path2=@"E:\ROS-VPN\box.exe";
File.Copy (path1 path2);(在控制台环境下的)
using System;
string path1=@"E:\ROS-VPN\winbox.exe";
string path2=@"E:\ROS-VPN\box.exe";
File.Copy (path1 path2);(在控制台环境下的)
File.Copy(path1, path2);
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);
}
}
}