Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

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,

BSTR * pbstrPhysicalPath

);

Parameters: IServer::MapPath

bstrLogicalPath

A binary string that contains the relative or virtual path.

pbstrPhysicalPath

Points to a binary string that receives the physical path.

Remarks: IServer::MapPath

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.

Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.