Can you start an outside process with Silverlight?

后端 未结 5 2061
有刺的猬
有刺的猬 2020-12-06 12:34

The System.Diagnostics assembly is part of the Silverlight CLR framework, but it only includes classes related to debugging, the Process class is not available. Is there any

5条回答
  •  一向
    一向 (楼主)
    2020-12-06 13:08

    Yes, you can in Silverlight 4 (in out-of-browser with elevated full trust), example:

    dynamic cmd = AutomationFactory.CreateObject("WScript.Shell");
    cmd.Run("calc.exe", 1, true);
    

提交回复
热议问题