Novell is now a part of Micro Focus

With the ActiveX controls, I am using the...

Articles and Tips: qna

01 Nov 2001


Q.

With the ActiveX controls, I am using the following code to return the users home directory: strHomeDrive = EditEntry.GetFieldValue("Home Directory", ""). All this tells me is that the NDS Home Directory is set and what it is. What would be a good way to check to see if the folder exists?

A.

A few steps are required:

  1. From the NDS names of the server and the volume, get the file system names (which may be the same or may be different). For that purpose, get the NDS volume objects and retrieve the properties "Host Resource Name" and "Host Server." Use these names to get the complete UNC path.

  2. Use Win32 APIs or the NWVolAdmin control to check existence of the path.

* Originally published in Novell AppNotes


Disclaimer

The origin of this information may be internal or external to Novell. While Novell makes all reasonable efforts to verify this information, Novell does not make explicit or implied claims to its validity.

© Copyright Micro Focus or one of its affiliates