Renaming Files using Path.Combine

  • Thread starter Thread starter MikeY
  • Start date Start date
M

MikeY

Hi everyone,

Through a computer crash (bah), I have lost my code to rename files using
Path.combine. Can anyone help me out in C# and with the syntax of renaming a
file or multiple files using the Path.Combine method.

Thank you all in advance.

MikeY
 
I have found my answer, But if anyone else out there has a better solution,
I am always on the look-out for better ways.

Thanks again.
MikeY
 
File.Move(Path.Combine(currentFolderPath, myItems),
Path.Combine(currentFolderPath, myItems2));
 
Back
Top