我必须检查是否存在以点开头的文件夹。
当我运行此脚本时,它在private void LogIn_FormClosing(object sender, FormClosingEventArgs e)
{
if (this.Tag != null)
{
// Button clicked
}
else
{
// other reasons
// Dp not call Close here, you are already closing
// if you don't set e.Cancel = true;
}
}
上返回False(但该文件夹已存在!)。然后,它在.FolderExists
上返回Err.Number 53(是的,该文件夹已经存在!)。
如何处理以点开头的文件夹?
.CreateFolder
有人可以帮助我吗?