scripting:api:application:path

Path

Property of IApplication

Full path and name of the executable

Read-Only Property of type BSTR

var pstrPath = Application.Path;
pstrPath = Application.Path
BSTR pstrPath;
HRESULT hr = Application.get_Path(&pstrPath);