🙂 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
Aangemelde leden kunnen berichten plaatsen, updates volgen en meer. Nieuw hier? Registreer een gratis account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.