如何在Silverlight Web应用程序中使用流程类 [英] How to use process class in Silverlight web application

查看:65
本文介绍了如何在Silverlight Web应用程序中使用流程类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Silverlight如何在客户端运行命令提示符,

How to run command prompt on client side by Silverlight,

推荐答案

您不能使用该类.

您可以尝试使用类似方法解决它;
You can''t the class is not available.

You can attempt to get around it with something like this;
dynamic shell = AutomationFactory.CreateObject("WScript.Shell");
shell.Run("cmd.exe", 1, true);



请注意,该示例极有可能不会在浏览器中运行,并且如果您在浏览器之外运行该示例,我猜测必须将信任设置为完全信任.

从我的角度来看,如果您需要从应用程序中打开命令提示符,则不应使用Silverlight.

希望这会有所帮助,
弗雷德里克(Fredrik)



Note that example most likely won''t run in a browser and if you run it out of the browser I''m guessing the trust has to be set to full trust.

From my point of view, if you need to open a command prompt from your application then you shouldn''t be using Silverlight.

Hope this helps,
Fredrik


这篇关于如何在Silverlight Web应用程序中使用流程类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆