Last post Feb 19, 2016 03:46 PM by rhamn
Feb 18, 2016 03:05 PM|rhamn|LINK
I'm using Visual Studio 2010
I have a form with a button I need code to open C:\Windows\system32\printmanagement.msc
I have search and just can't get it..
Feb 18, 2016 03:11 PM|bbcompent1|LINK
rhamn, the problem with what you are trying to do is the command would be executed only on the server, not the client side. I personally do not know of any way to use Process.Start on the client machine. This is by design; imagine for a moment if we had
that kind of power on client machines. While our intentions may be pure, others have more nefarious purposes in mind. I suspect you may need to use some type of client application, Adobe Flash, or Silverlight.
Feb 19, 2016 12:42 PM|rhamn|LINK
On my computer when I use the Run command and insert: printmanagement.msc
It opens no problem is there not a way to shell or shell execute?
Feb 19, 2016 01:33 PM|PatriceSc|LINK
It seems to work because your development machine is both the web server and the client. But once deployed to a real web server your server side C# code will run on the server side and you won't see anything on the client side. Not sure what you are trying
to do but keep in mind that a web app is restricted by design for safety (basically the browser is just a sandox). I suspect you may have some printing code that won't work either.
Or if you meant a Windows Form rather than than a Web Form see rather a Windows programming forum at the msdn.microsoft.com site...
Feb 19, 2016 03:46 PM|rhamn|LINK