[Silverlight]调用外部可执行程序

        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);
                }
            }
        }

 

你可能感兴趣的:(silverlight)