executable-path

Can I get the ExecutablePath from a System.Management.EventArrivedEventArgs object?

I'm using a System.Management.ManagementEventWatcher to get the process ID and executable path for a started process: private void startWatcher_EventArrived(Object sender, EventArrivedEventArgs e) { String processID = e.NewEvent.Properties["ProcessID"].Value.ToString(); var searcher = new ManagementObjectSearcher(new WqlObjectQ...

Defining path to executable for a custom control

I have created a custom control using VB.NET in Visual Studio 2008 that gives extensive mapping and tracking functionality to a search and rescue app. The problem I am having is that in a number of places I need to define the path to the main applications executable in order to find a number of directories the control needs to function ...