Export (0) Print
Expand All
Expand Minimize

ExecutableDirectories Property

Visual Studio .NET 2003

Path to use when searching for executable files while building a Visual C++ project. Corresponds to environment variable PATH.

[Visual Basic .NET]
Public Property ExecutableDirectories() As String
[Visual Basic 6]
Property Get ExecutableDirectories() As String
Property Let ExecutableDirectories( _
   ByVal NewValue As String _
HRESULT __stdcall get_ExecutableDirectories(
   /* [out, retval] */ BSTR* retVal
HRESULT __stdcall put_ExecutableDirectories(
   /* [in] */ BSTR NewValue
public string ExecutableDirectories {get; set;}
[JScript .NET]
public function get ExecutableDirectories() : String
public function set ExecutableDirectories(
   NewValue : String


The following sample code modifies the ExecutableDirectories property in the development environment:

' add reference to Microsoft.VisualStudio.VCProjectEngine
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim cfgs, tools As IVCCollection
        Dim cfg As VCConfiguration
        Dim p As VCPlatform
        Dim x As String
        prj = DTE.Solution.Projects.Item(1).Object
        p = prj.Platforms(1)
        x = p.ExecutableDirectories
        p.ExecutableDirectories = x + ";something"
    End Sub
End Module

See Samples for Project Model Extensibility for information on how to compile and run this sample.

See Also

Applies To: VCPlatform Object

© 2015 Microsoft