玩mod的时候用到的,需要替换文件名,稍微记录一下
public static string TextFinder(string str)
{
str = str.Replace("261","238");
return str;
}
static void Main(string[] args)
{
string filePath = @"J:\Neko\natives\STM\player\mod\f\pl261";
DirectoryInfo folder = new DirectoryInfo(filePath);
var files = folder.GetFiles();
foreach(var file in files)
{
string newFileName = TextFinder(file.FullName);
File.Move(file.FullName,newFileName);
}
}