• 递归打开一个文件夹所有下面的文件|软件开发掌握


          public void Dirs(string Path)
            {
             
                System.IO.DirectoryInfo dirs = new System.IO.DirectoryInfo(Path);
                foreach (FileInfo fi in dirs.GetFiles("*.htm"))
                {

                    Process.Start("IExplore.exe", fi.FullName);
                }
              
                if (dirs.GetDirectories().Length > 0)
                {
                    foreach (DirectoryInfo di in dirs.GetDirectories())
                    {
                        Dirs(di.FullName);
                    }
                }
            }

  • 相关阅读:
    [HNOI2008] Cards
    loj #136
    a problem
    dp * 3
    STL
    套题1
    luogu 4211
    loj #2319
    loj #2316
    luogu 1144
  • 原文地址:https://www.cnblogs.com/bestsaler/p/1835876.html
Copyright © 2020-2023  润新知