Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String old = @"C:\" + "asd.txt";
- String newFile = @"C:\" + "asd2.txt";
- Console.WriteLine(old + " : " + newFile);
- old = Regex.Replace(old, @"\'", "");
- newFile = Regex.Replace(newFile, @"\'", "");
- old = old.Trim();
- newFile = newFile.Trim();
- Console.WriteLine(old + " : " + newFile);
- System.IO.File.Move(old, newFile);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement