How to Move Directory or Rename Directory in C#.Net?
First add System.IO;
NewName = "RenameFolder";
Directory.Move("F:\\myFolder", "F:\\" + NewName);
This will move your directory to new directory.
First add System.IO;
Code:
string NewName= string.Empty;NewName = "RenameFolder";
Directory.Move("F:\\myFolder", "F:\\" + NewName);
This will move your directory to new directory.
No comments:
Post a Comment