Advertisement
Guest User

Untitled

a guest
Jul 2nd, 2013
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.42 KB | None | 0 0
  1.             String old = @"C:\" + "asd.txt";
  2.             String newFile = @"C:\" +  "asd2.txt";
  3.             Console.WriteLine(old + " : " + newFile);
  4.             old = Regex.Replace(old, @"\'", "");
  5.             newFile = Regex.Replace(newFile, @"\'", "");
  6.             old = old.Trim();
  7.             newFile = newFile.Trim();
  8.             Console.WriteLine(old + " : " + newFile);
  9.             System.IO.File.Move(old, newFile);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement