
/// <summary>
/// 指定路径删除文件
/// 注意:文件的删除要求指定路径文件必须存在
/// </summary>
/// <param name="strPath">路径</param>
public void deleteMyFile ( string strPath )
{
if ( File.Exists ( strPath ) )
{
File.Delete ( strPath );
MessageBox.Show ( "删除成功!" );
}
else
{
MessageBox.Show ( "要删除文件不存在!" );
}
}




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