using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.IO;
namespace for文2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void button1_Click(object sender, EventArgs e)
{
string path1 = @"C:\Users\8100825\Documents\for文test1\for文test1.txt";
string path2 = @"C:\Users\8100825\Desktop\for文test2\for文test1.txt";
File.Move(path1, path2);
}
}
}
参考サイト
https://itsakura.com/csharp-file-create
↧