+ Reply to Thread
Results 1 to 2 of 2

Thread: How to find whether input path is directory or not?

  1. #1

    How to find whether input path is directory or not?

    How to find whether input path is directory or not?

  2. #2
    Senior Member
    Join Date
    Feb 2012
    Posts
    109
    PathIsDirectory verifies whether input path is valid directory or not.

    Example:

    Code:
    #include <Shlwapi.h>
    
    BOOL bIsDirectory = PathIsDirectory("D:\\Temp1") ;
    BOOL bDirectoryIsEmpty = PathIsDirectoryEmpty("D:\\Temp2") ;
    bDirectoryIsEmpty = PathIsDirectoryEmpty("D:\\Temp2\\Temp22") ;
    Note:
    Do not forget to add "Shlwapi.lib" in input library list.

+ Reply to Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts