Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,

I have an XYZ.exe in a remote sytem connected through LAN whose path is like this

\\Emb-ban-026\Arbnet2.0-old\DAQ_Debug.
Please note that this is network path to place where exe is residing.

How can i start this application of remote computer and start it?

I tried using Process class, but it will not start processes in remote system.
Also i tried WMI but no luck.

Can someone give me more details on how to run an exe in remote sytem with this kind of network path.
Posted

1 solution

I use PsExec for this type of thing

http://technet.microsoft.com/en-us/sysinternals/bb897553[^]

It allows you to specify user name \ password of the remote machine to execute the process. Very useful tool!
 
Share this answer
 
Comments
glued-to-code 1-Dec-11 9:23am    
But i just want to know, how can i give parameters in that as my server path on network is \\Emb-ban-026\Arbnet2.0-old\DAQ_Debug

Can you just provide one example?
Dylan Morley 1-Dec-11 9:31am    
Do you actually want to run the process on the remote machine? So the program is executed on this remote machine, not on your computer?

The server path is relative to you, not the remote machine. What is that location on the remote machine, is it something like C:\?

In which case you could just use...

psexec \\Emb-ban-026 c:\Arbnet2.0-old\DAQ_Debug\xyz.exe -u username -p password

IF this isn't what you want, you just want to run it *on your machine*, but from shared path - the process class should do what you need - what errors did you receive?

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