IServer::MapPath

The IServer::MapPath method maps the specified relative or virtual path to the corresponding physical directory on the server. For more information, see the MapPath method of the Server object.

HRESULT MapPath(
  BSTR bstrLogicalPath,  //binary string that contains the relative 
                         // or virtual path
  BSTR * pbstrPhysicalPath  //pointer to a binary string that 
                            // receives the physical path
);
 
Parameters
bstrLogicalPath
A binary string that contains the relative or virtual path.
pbstrPhysicalPath
Points to a binary string that receives the physical path.
Remarks

This method does not check whether the path it returns is valid or exists on the server.

Because the IServer::MapPath method maps a path regardless of whether the specified directories currently exist, you can use it to map a path to a physical directory structure, and then pass that path to a component that creates the specified directory or file on the server.

See Also

Server Object


© 1997 by Microsoft Corporation. All rights reserved.