I usually get ERROR_FILE_NOT_FOUND when I try to open a file that’s not there, but now fopen() fails and GetLastError() returns ERROR_PATH_NOT_FOUND.
So what is the difference between ERROR_FILE_NOT_FOUND and ERROR_PATH_NOT_FOUND?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
In
WinError.h,ERROR_FILE_NOT_FOUNDhas the descriptive text “The system cannot find the file specified.” andERROR_PATH_NOT_FOUNDhas the descriptive text “The system cannot find the path specified.”This doesn’t particularly clarify matters.
Usually, however, “file not found” refers to the case where the file itself cannot be found and “path not found” refers to the case where a component of the path (one of the directory names specified) cannot be found.