Click here to Skip to main content
15,793,452 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
hi i have a problem with system.diagnostics.process for remotely process
i want to know how use it for execute for remotely process
i used system.diagnostics.process.start()and with correct path of my exe file in remote system and with good permision to accessing it but does not execute
can help me how using this command?

You don't use Process.Start to fire off remote processes. If you are working with a remote process, the Process class only allows you to view the processes (assuming you have the correct privileges). If I were you, I'd use WMI instead. Here's a sample implementation I knocked up in the CP textbox:
ManagementClass mc = new ManagementClass(@"\replace_with_your_server\root\cimv2:Win32_Process");
mc.InvokeMethod("Create", new object[]{ "c:\program files\MyCompany\MyProcess.exe" });
Share this answer
Manfred Rudolf Bihy 7-Dec-10 8:02am    
Hi Pete, neither in the Win32_Process nor the Win32_ProcessStartInfo class did I find anything that would allow me to add credentials. Do I assume rightly that the process is started on the remote machine with the same authentication the currently running process has?
Share this answer
Manfred Rudolf Bihy 7-Dec-10 7:57am    
I wanted to suggest that too, you beat me to it! Have a 5! :)

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