I\'ve got a folder:
c:\\test
I\'m trying this code:
File.Move(@\"c:\\test\\SomeFile.txt\", @\"c:\\test\\Test\");
If file really exists and you want to replace it use below code:
string file = "c:\test\SomeFile.txt" string moveTo = "c:\test\test\SomeFile.txt" if (File.Exists(moveTo)) { File.Delete(moveTo); } File.Move(file, moveTo);