私は別のフォルダにフォルダのコピーファイルを必要と私は使用このファイルコードをコピーしますか?
string[] files = Directory.GetFiles(folderBrowserDialog1.SelectedPath);
foreach (string file in files)
{
folderBrowserDialog1.ShowDialog();
string xx = folderBrowserDialog1.SelectedPath;
folderBrowserDialog1.ShowDialog();
string yy = folderBrowserDialog1.SelectedPath;
File.Copy(xx, yy);
しかし、機能していませんよ。 なぜですか?
、あなたは何exaclty「動作しない」んを意味し、ファイル – EpicKip
をコピーしていませんか?少し具体的にしてください。 – HimBromBeere
xxとyyに関する情報はほとんどありませんか?それで、File.Copyが何をしようとしているのかは明らかです。 –