public void InvokeExternalExecutableApp() { if (Application.Current.HasElevatedPermissions) {using (dynamic com = AutomationFactory.CreateObject("WScript.Shell")) { com.Run("notepad.exe", 1, true); com.Run("calc.exe", 1, true); } } }
public void InvokeExternalExecutableApp() { if (Application.Current.HasElevatedPermissions) {using (dynamic com = AutomationFactory.CreateObject("WScript.Shell")) { com.Run("notepad.exe", 1, true); com.Run("calc.exe", 1, true); } } }
转载于:https://www.cnblogs.com/allanli/p/3154530.html