- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
private void button1_Click(object sender, EventArgs e)
{
short number = 34;
folderBrowserDialog1.ShowDialog();
//fileListBox1.FileName = folderBrowserDialog1.SelectedPath;
DirectoryInfo myFolder = new DirectoryInfo(folderBrowserDialog1.SelectedPath);
foreach (FileInfo T in myFolder.GetFiles())
{
number++;
string filename = T.Name;
File.Move(folderBrowserDialog1.SelectedPath + "" + filename, folderBrowserDialog1.SelectedPath + "" + number.ToString());
}
}
}
}
betking1 21.07.2017 15:26 # 0
gogolevsergey 23.08.2017 11:04 # 0