/// <summary> |
/// 指定路径创建文件夹 |
/// </summary> |
public void createMyDirectory ( string strPath ) |
{ |
try |
{ |
Directory.CreateDirectory ( strPath ); //创建文件夹 |
MessageBox.Show ( "创建成功!" ); |
//获取此文件夹的属性 |
labResult.Text = "此文件夹的相关属性如下:\n" ; |
labResult.Text += Directory.GetCreationTime ( strPath ); //创建时间 |
} |
catch ( Exception ex ) |
{ |
MessageBox.Show ( ex.Message, "系统提示:" ); |
} |
} |
by: 发表于:2018-02-02 09:52:51 顶(0) | 踩(0) 回复
??
回复评论