Check if is folder or file function?
-
Hello Comunity, is there any function to determine is it a folder or file, e.g. C:\folder\file.txt <-- path to file C:\folder\files\ <-- path to folder C:\folder\files <-- path to folder thanks in advance regards break
Use
PathIsDirectory
.Prasad Notifier using ATL | Operator new[],delete[][^]
-
Use
PathIsDirectory
.Prasad Notifier using ATL | Operator new[],delete[][^]
-
Hello Prasad, thanks for answer! :) regards break; -- modified at 7:30 Thursday 22nd March, 2007
break; wrote:
thanks for quick answer!
So why do you delay in polling a quick vote for him?
Nobody can give you wiser advice than yourself. - Cicero ப்ரம்மா
-
break; wrote:
thanks for quick answer!
So why do you delay in polling a quick vote for him?
Nobody can give you wiser advice than yourself. - Cicero ப்ரம்மா
When all of the dust settles, does it even matter when, or even if, he votes? :rolleyes:
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
When all of the dust settles, does it even matter when, or even if, he votes? :rolleyes:
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
:-D Not really that it matters, but IMO they should be thankful when they get help, but they don't do..
Nobody can give you wiser advice than yourself. - Cicero ப்ரம்மா
-
:-D Not really that it matters, but IMO they should be thankful when they get help, but they don't do..
Nobody can give you wiser advice than yourself. - Cicero ப்ரம்மா
Last time I checked, "thanks for answer" was being thankful. That in itself is all that's necessary to express thanks. Voting is nothing but extra.
"Approved Workmen Are Not Ashamed" - 2 Timothy 2:15
"Judge not by the eye but by the heart." - Native American Proverb
-
Hello Comunity, is there any function to determine is it a folder or file, e.g. C:\folder\file.txt <-- path to file C:\folder\files\ <-- path to folder C:\folder\files <-- path to folder thanks in advance regards break
Here's a Win95 :) compatible way of doing it:
// Get full attributes
DWORD dwAttrib = GetFileAttributes(psPath);
// Convert non-existance code to a value that will fail the bit-test
if(0xFFFFFFFF == dwAttrib)
dwAttrib = 0;
// Does it exist, and is it a dir?
if(0 != (dwAttrib&FILE_ATTRIBUTE_DIRECTORY))
// It's a dir! -
Here's a Win95 :) compatible way of doing it:
// Get full attributes
DWORD dwAttrib = GetFileAttributes(psPath);
// Convert non-existance code to a value that will fail the bit-test
if(0xFFFFFFFF == dwAttrib)
dwAttrib = 0;
// Does it exist, and is it a dir?
if(0 != (dwAttrib&FILE_ATTRIBUTE_DIRECTORY))
// It's a dir!