Access to Directory, Drive`
Posted on 2001-06-07
I am using the Drive control and the Directory control to allow users to search for files. My problem is I don't know how to check to see if the user has the proper permissions on a particular drive or directory. Windows Explorer allows to you to map a network drive even if you do not have access to it. This drive or directory shows up in the drive or the directory control. I would like to have code that, when a user selects a particular drive, I can check for permissions before setting the directory control with this line: Dir1.Path = Drive1.Drive. I know that I am able to accomplish this by using error checking, but I would like to check for permissions before an error occurs. Thanks.