CheckPath Method

This method attempts to create the directory specified by the value passed.  If successful, it removes the directory.  Use this method to make sure the directory does not already exist before starting a mail package.

IDL Definition

HRESULT CheckPath([in] BSTR bstrPath);

Parameters

BstrPath

The filesystem path to the directory.

Return Values

a standard HRESULT that can have the following special values:

#define name description
S_OK path is valid.
E_FAIL unspecified error
ERROR_ALREADY_EXISTS the directory already exists.


© 1997-1998 Microsoft Corporation. All rights reserved.