Hi,
DirectoryInfo d = new DirectoryInfo(@"D:\test");
FileInfo[] infos = d.GetFiles();
foreach (FileInfo file in infos)
{
FileInfo[] infos = d.GetFiles();
foreach (FileInfo file in infos)
{
File.Move(f.FullName, Path.Combine(f.DirectoryName, "N " + label3.Text + "-" + label4.Text + " " + "9187" + " " + "0000" +" "+ file+"Here"));
}
Actually this is my code, want to rename a after file from a label
Kindly kelp me out

Rajeesh MenothRank #118 · 18.4K reputationPosted Nov 5, 2015, 6:49 PM EST
praveen kumar185 reputationPosted Nov 5, 2015, 7:03 PM EST
Jignesh TrivediRank #16 · 50.3K reputationPosted Nov 5, 2015, 7:05 PM EST