一.本机字体

            System.Drawing.Text.InstalledFontCollection MyFont = new System.Drawing.Text.InstalledFontCollection();
            var v = MyFont.Families;

 

二.本机文件及文件夹

  DirectoryInfo[] dirs = new DirectoryInfo(@"d:\Documents").GetDirectories();
            var query = from d in dirs
                        where (d.Attributes & FileAttributes.System) == 0
                        select new
                        {
                            DirectoryName = d.FullName,
                            Created = d.CreationTime,
                            Files = from f in d.GetFiles()
                                    where (f.Attributes & FileAttributes.Hidden) == 0
                                    select new { FileName = f.Name, f.Length, }
                        };
 
三.本机所有进程

    var v = System.Diagnostics.Process.GetProcesses();

 

相关文章:

  • 2022-03-04
  • 2021-06-30
  • 2022-01-18
  • 2021-07-28
  • 2021-05-29
  • 2021-11-29
  • 2022-12-23
  • 2021-05-20
猜你喜欢
  • 2021-05-25
  • 2021-09-20
  • 2021-08-04
  • 2021-07-24
  • 2021-08-03
  • 2022-02-09
相关资源
相似解决方案