从silverlight应用程序运行exe

时间:2013-08-09 10:58:10

标签: .net silverlight-5.0

我想从Silverlight应用程序执行Exe。

dynamic cmd = AutomationFactory.CreateObject("WScript.shell");               
cmd.Run(@"cmd /C C:\""Program Files (x86)""\""CounterPath""\""eyeBeam.exe""");

我正在使用上面的代码。但是当我在本地计算机上部署silverlight应用程序并且不使用来自localhost的IP运行时面临一些问题。

exe没有运行。例外情况如下: “当前上下文不支持此操作。”

它与本地主机完美配合,如果您知道解决方案或在我的代码中发现任何问题,请提供帮助。

谢谢和问候, Ruchi Patel

0 个答案:

没有答案