private void button3_Click(object sender, EventArgs e) { String pahtFile = lc.initC.pathImage + "\\" + cboYear.Text + "\\" + cboMonth.SelectedValue.ToString() + "\\" + cboPeriod.SelectedValue.ToString(); DirectoryInfo dir = new DirectoryInfo(pahtFile); foreach (FileInfo file in dir.GetFiles()) { lc.renameFileImage1(file.FullName); } }