在 VB 中检测文件是否存在可采用六种方法:Dir 函数配合文件属性常量遍历匹配;调用 SHFileExists API 函数;通过 GetFileAttributes 获取文件属性并判断返回值;使用 PathFileExists API 直接返回布尔结果;... 阅读全文