📌  相关文章
📜  如何在 c# 代码示例中检查文件路径是否有效

📅  最后修改于: 2022-03-11 14:48:58.445000             🧑  作者: Mango

代码示例1
string path="D://files"
if (!Directory.Exists(path))
                {
                    MessageBox.Show("Path is not valid please check if this path exists or not","Path Not Found", MessageBoxButtons.OK, MessageBoxIcon.Error);
                }