Show pageOld revisionsBacklinksAdd to bookBack to top This page is read only. You can view the source, but not change it. Ask your administrator if you think this is wrong. ====== PathToRelative ====== Method of [[:scripting:api:application:start|IApplication]] ===== Description ===== Convert path to relative form ===== Parameters ===== * [[scripting:api:data-type:BSTR|BSTR]] **strPathAbsolute** ==== Return Value ==== * [[scripting:api:data-type:BSTR|BSTR]] **pstrPathRelative** ===== Syntax ===== ==== JavaScript ==== <code javascript> var pstrPathRelative = Application.PathToRelative(strPathAbsolute); </code>==== Visual Basic Script ==== <code vb> pstrPathRelative = Application.PathToRelative strPathAbsolute </code>==== C++ ==== <code cpp> BSTR pstrPathRelative; HRESULT hr = Application.PathToRelative(strPathAbsolute, &pstrPathRelative); </code>===== See Also ===== [[:scripting:api:application:start|IApplication]] ~~NOTOC~~