Utilities.ExtractRelativePath Method

Applies to TestComplete 12.60, last modified on September 17, 2018
This method is obsolete. See the Remarks section below.

Description

Use the Utilities.ExtractRelativePath method to convert a fully qualified path name into a relative path name.

Declaration

Utilities.ExtractRelativePath(BaseNameDestName)

BaseName [in]    Required    String    
DestName [in]    Required    String    
Result String

Applies To

The method is applied to the following object:

Parameters

The method has the following parameters:

BaseName

Specifies the file name (including the path) to be converted. BaseName may or may not include a file name, but it must include the final path delimiter.

DestName

Holds the fully qualified name of the directory to which the resulting path name should be relative.

Result Value

A string that holds the path to the file or directory specified by the BaseName parameter relative to DestName.

Remarks

This method is obsolete. It is supported for backward compatibility only. To convert a fully-qualified path into a relative one, use the aqFileSystem.GetRelativePath method.

See Also

aqFileSystem.GetRelativePath Method
aqFileSystem.GetFileFolder Method
aqFileSystem.GetFileDrive Method
Drive Property
aqFileSystem.GetFileFolder Method
Path Property
aqFileSystem.GetShortPathName Method
aqFileSystem.GetFileName Method
Name Property
aqFileSystem.GetFileExtension Method

Highlight search results