error LNK2001: unresolved external symbol __imp__PathFileExistsA@4

PathFileExists
Determines whether a path to a file system object such as a file or directory is valid. 


BOOL PathFileExists(
    LPCTSTR pszPath
    );


检查目录是否存在的一个函数

#include <shlwapi.h>
#pragma comment(lib,"Shlwapi.lib")

或者


原文地址:https://www.cnblogs.com/zcc1414/p/3982408.html