File.Move
string oldNameFullPath = "XX_TRCSAB_123456.txt"; var index = oldNameFullPath.indexOf('_'); var newNameFullPath = oldNameFullPath.substring(index, oldNameFullPath.Length - index); System.IO.File.Move(oldNameFullPath, newNameFullPath);
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)