Vingo

hi everyone

Now i met the question that I cannot get the attribute of the Folder

I seted the folder read-only and tried

if((GetFileAttributes (folderpath) & FILE_ATTRIBUTE_READONLY) != 0)

{

MessageBox("readonly");

}

else

{

MessageBox("else");

}

And every time I got the message "esle",

Is there any other method to resolve the problem

Thanks a lot




Re: Visual C++ General How to judge the attribute of the folder

Pintu Shukla

try this

DWORD fa;
fa =GetFileAttributes("c:\\command.com");
if(fa & FILE_ATTRIBUTE_READONLY)

MessageBox("readonly");

else

MessageBox("else");

Thanx