How to determine if a file or directory exists

xiaoxiao2021-03-06  113

WIN32_FIND_DATA FD;

Handle Hfind = FindfirstFile ("D: // CDR // TE", & fd);

IF ((HFIND! = INVALID_HANDLE_VALUE) && (fd.dwfileattributes & file_attribute_directory))

{

//

}

FindClose (HFIND);

转载请注明原文地址:https://www.9cbs.com/read-101480.html

New Post(0)