获取 文件夹下所有文件的MD5值,包括文件夹下的子文件
代码:
Winform前台编写: 代码建下边附件
private void btnOK_Click(object sender, EventArgs e)
{
if (fbdFolder.ShowDialog() == DialogResult.OK)
{
string foldPath = fbdFolder.SelectedPath;
if (!Directory.Exists(foldPath))
{
lblUrl.Text = "对不起未找到文件夹!";
}
lblUrl.Text = foldPath;
//创建datatable 数据源
DataTable dt = new DataTable();
//为Datatable 创建列
DataColumn fileName = new DataColumn();
fileName.ColumnName = "FileName";
fileName.DataType = typeof(string);
fileName.DefaultValue &#