Method of IApplication
Convert path to relative form
var pstrPathRelative = Application.PathToRelative(strPathAbsolute);
pstrPathRelative = Application.PathToRelative strPathAbsolute
BSTR pstrPathRelative; HRESULT hr = Application.PathToRelative(strPathAbsolute, &pstrPathRelative);