praveen kumar

praveen kumar

  • NA
  • 188
  • 32.2k

file rename

Nov 5 2015 11:30 PM
Hi,
 
 
DirectoryInfo d = new DirectoryInfo(@"D:\test");
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

Answers (3)