Click here to Skip to main content
15,891,423 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to run command prompt on client side by Silverlight,
Posted

1 solution

You can't the class is not available.

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


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
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900