#include <io.h>

if (_access(strPath, 0) == -1) //第一个参数为文件路径或者文件夹的路径

return false;