string wmiQuery = string.Format("select CommandLine from Win32_Process where Name='{0}'", "ArcMap.exe"); System.Management.ManagementObjectSearcher searcher = new System.Management.ManagementObjectSearcher(wmiQuery); System.Management.ManagementObjectCollection retObjectCollection = searcher.Get(); foreach (System.Management.ManagementObject retObject in retObjectCollection) System.Diagnostics.Debug.WriteLine(">>>>" + retObject["CommandLine"]);
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.