How to check if folder/drive is valid?
-
Hi altogether! I'm trying to check whether a given path of a folder (also on the network or just a drive) really exists. I'd like to do this without using the Shlwapi.dll, but I have no idea how to do this. Any ideas? Thank you very much, Marcus.
_access()
_stat()
CFile::GetStatus()
GetFileAttributes()can all be used.
A rich person is not the one who has the most, but the one that needs the least.
-
_access()
_stat()
CFile::GetStatus()
GetFileAttributes()can all be used.
A rich person is not the one who has the most, but the one that needs the least.
-
I just tried CFile::GetStatus(), but this doesn't work for network locations. But I think one of the other functions will do the job. Thank you very much!
khb wrote: I just tried CFile::GetStatus(), but this doesn't work for network locations. Correct. I did not bother to read the docs (fine print) for each function I mentioned. I just wanted to throw a bunch of them out on the table so you would have plenty to choose from.
A rich person is not the one who has the most, but the one that needs the least.
-
khb wrote: I just tried CFile::GetStatus(), but this doesn't work for network locations. Correct. I did not bother to read the docs (fine print) for each function I mentioned. I just wanted to throw a bunch of them out on the table so you would have plenty to choose from.
A rich person is not the one who has the most, but the one that needs the least.