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);
}
}
}
文章来源:
http://www.cnblogs.com/wangdetian168/archive/2008/12/06/1348939.html
posted on 2010-10-11 09:27
sanmao 阅读(95)
评论(0) 编辑 收藏