Function : OS File

OSPathNetConstruct - Given port, server, and filename, create full path.
----------------------------------------------------------------------------------------------------------

#include <osfile.h>

STATUS LNPUBLIC OSPathNetConstruct(
const char far *PortName,
const char far *ServerName,
const char far *FileName,
char far *retPathName);

Description :

This function takes a port name, a server name, and file path relative to the Domino or Notes data directory and creates a full network path specification for a Domino database file.

To open a Domino database on a server, use this function to create the full path specification, and pass this specification as input to NSFDbOpen or NSFDbOpenExtended.

Parameters :

Sample Usage :


/* Construct fully qualified path from components */

if (strlen(server_name))
{
   if (error_status = OSPathNetConstruct(NULL, server_name,
                                      file_name, fullpath_name))
       goto Exit;
}
else
   strcpy(fullpath_name, file_name);
   
if (error_status = NSFDbOpen(fullpath_name, &db_handle))
  goto Exit;


See Also :

OSPathNetParse
----------------------------------------------------------------------------------------------------------