更新时间:2023-12-05 20:40:04
DirectoryInfo d = new DirectoryInfo(@"E:\Images\");
FileInfo[] infos = d.GetFiles("*");
int i = 0;
foreach (FileInfo f in infos)
{
i = i + 1;
File.Move(f.FullName, Path.Combine(f.Directory.ToString(), Convert.ToString(i)) + f.Extension);
}
DirectoryInfo di = new DirectoryInfo("Folder_of_interest");
foreach (FileInfo fi in di.GetFiles())
{
fi.MoveTo("new_file_name");
}
那应该让您开始.
That should get you started.
在程序提取视频中,对保存在文件夹中的帧进行修整,然后在保存后如何刷新文件夹,我想以数字顺序重命名这些帧. 谢谢
in the programe extract vedio to frams the frames saved in folder how refresh folder after saving and i want to rename the frames with numer order .
thanks