
/// <summary>
/// 获取指定路径文件夹中子目录信息
/// </summary>
/// <param name="strPath">路径</param>
public void getMyDirectories ( string strPath )
{
string[] myDirsName = Directory.GetDirectories ( strPath ); //获取指定路径文件夹中所有子目录名称
labResult.Text += "\n此文件夹中子目录的个数:" + myDirsName.Length;
foreach ( string strDirName in myDirsName )
{
labResult.Text += "\n" + strDirName;
}
}




by: 发表于:2018-02-02 09:55:05 顶(0) | 踩(0) 回复
??
回复评论