Gets the path for the executable file that started the application, including the executable name.
Public Shared ReadOnly Property ExecutablePath As String
public static string ExecutablePath { get; }
public: static property String^ ExecutablePath { String^ get (); }
static member ExecutablePath : string
for getting the path. Associated enumeration: FileIOPermissionAccess..::.PathDiscovery
Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2