PathFileExists Function--------------------------------------------------------------------------------Determines whether a path to a file system object such as a file or directory is valid.SyntaxBOOL PathFileExists( LPCTSTR pszPath ); ParameterspszPath [in] A pointer to a null-terminated string of maximum length MAX_PATH that contains the full path of the object to verify. Return ValueReturns TRUE if the file exists, or FALSE otherwise. Call GetLastError for extended error information.
Windows 当然不会给你提供这样的API了,需要根据自己的需求写个程序。 很简单,相信难不倒你的!
Windows 当然不会给你提供这样的API了,需要根据自己的需求写个程序。 很简单,相信难不倒你的!
);
ParameterspszPath
[in] A pointer to a null-terminated string of maximum length MAX_PATH that contains the full path of the object to verify.
Return ValueReturns TRUE if the file exists, or FALSE otherwise. Call GetLastError for extended error information.
很简单,相信难不倒你的!
很简单,相信难不倒你的!