我有一个程序,它利用第三方工具来创建日志文本文件。_restore{GUID}文件夹将包含所有恢复点。然而,{GUID}是完全随机的数字,并且每台计算机都不同。“C:\系统卷信息”目录通常只包含一个文件夹,即"_random{GUID}“文件夹。有没有人可以建议一下这些代码?谢谢! Process process = new
Environment.SpecialFolder.UserProfile);DirectoryInfodinfo = new DirectoryInfo(pathDownload); // Populates field with all Sub Folders
FileInfo[] Files =
public static public void directorySearch(ref List<DirectoryInfo> subs, ref DirectoryInfo dir, ref List<FileInfo> fileEntries, ref int k) do foreach (DirectoryInfo elements in dir.GetDirectories()) subs.Add(elements);
Windows实况\联系人“ private void Clear_Click(object sender, EventArgs e) List<DirectoryInfo> FolderToClear = new List<DirectoryInfo>();
// here is a list of files I want to deleteFolderToClear.Add(new DirectoryInfo(&qu