//判斷文件路徑是否合法
if (File.Exists(txtAttachment.Text.ToString())==false)
{
FrontHelper.ShowMsg(2, "文件不存在");
}
//判斷文件夾路徑是否合會
if (Directory.Exists(txtFilePath.Text))
{
this.Close();
}
else
{
// \:為轉義字符
FrontHelper.ShowMsg(2, "\"常用文件夾存放路徑\"存放不正確");
}
c# 判斷事件中鼠標的左右按鍵
C# 得到系統特殊文件夾的路徑(Environment.SpecialFolder)........
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M