0

I'm 100% green when it comes to transferring data over a network... I've never done it before, and I have no idea what it entails. What I want doesn't seem like it would be too hard, however.

I have a very simple forms project in Visual Studio, just something I whipped up to sync up two media players. Basically, I need to open an application (With an argument) on my laptop by pressing a button on my desktop.

I know that to do it locally, I'd run...

Process.Start(@"C:\Program Files (x86)\MPC-HC\MPC-HC.exe", file);

So I'm just looking for a way to execute that command on my laptop via an app on my desktop.

  • you will need a tcp server on your laptop and a client on your desktop-pc, look up a basic tcp server/client example, there are a lot of those on the internet. – x4rf41 Jul 04 '13 at 17:22
  • http://stackoverflow.com/questions/428276/how-to-execute-a-command-in-a-remote-computer – ilansch Jul 04 '13 at 17:26
  • http://stackoverflow.com/questions/11287506/how-to-run-a-command-line-on-a-remote-computer-using-c-sharp?lq=1 – ilansch Jul 04 '13 at 17:26

1 Answers1

0

It depends on some things and some preparation on the WMI configuration, but Microsoft offers a good start in the MSDN documentation on how to start a process remotely.

There's another simple solution, provided from the SysInternals tools. The psexec tool allows with some minor configuration the remote start of processes. This should be much easier for what you try to achieve.

zero0
  • 847
  • 11
  • 26