🙂 System.Diagnostics.Process.Start(@C:\Program Files\ESRI\bin\arcmap.exe);
/* VB DECLARED */ Public Declare Function ShellExecute _ Lib "shell32.dll" _ Alias "ShellExecuteA" ( _ ByVal hWnd As Long, _ ByVal lpOperation As String, _ ByVal lpFile As String, _ ByVal lpParameters As String, _ ByVal lpDirectory As String, _ ByVal nShowCmd As Long) _ As Long
/* C# Equivalent */ [System.Runtime.InteropServices.DllImport("shell32.dll", EntryPoint = "ShellExecute")] public static extern int ShellExecuteA(int hwnd, string lpOperation, string lpFile, string lpParameters, string lpDirectory, int nShowCmd);
ShellExecuteA(hWnd, "OPEN", "YOURFILE", Parameters, "", 0); // SW_HIDE ShellExecuteA(hWnd, "OPEN", "YOURFILE", Parameters, "", 1); // SW_SHOW
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.