Opening up a Unity game .exe from a remote location

Sorry about this, but my last question was closed claiming that it was off topic and nothing to do with Unity. My questions are about Unity, as it’s a Unity game.exe I’m trying to open. I’m trying to ascertain wither it is even possible to do with a Unity game.exe or if Unity has something in built already that I can do this?

What I’m trying to do is run my game from a remote location. I’ve got a server / client architecture on the go right now, and if I want things to work I need to start my server first, then manually go to every other computer and run the client on them. What I’m really wanting to do is run each client from my server PC so I no longer need to manually turn all the clients on (I have 8 clients). This is done, because I am using multiple monitors in a specific set.

Simply using one computer is something I cannot do. And the functionality it something I need to have in sooner or later anyway.

I had thought about running a batch file that would open up the target exe, but was informed that it wouldn’t work.The reason stated being: In memory the code is loaded and the execution happens all on the computer that you are running the bat file file. So the target exe wouldn’t open on the target computer.

I’ve then tried using PsExec to do the same thing. However, when I run the command line prompt, it opens the .exe for a fraction of a second and gives out an error code: -1073740771. Now, I’ve tried googling that, but can’t find a single thing that states what error relates to.

Now, I have a few questions I’d like to throw to the community:

  1. Has anyone ever done what I’m trying to do? If so, how did you do it? 2) If you’ve used PsExec, what is the error that it is spitting out? 3) Is there another way I can do what I’m trying to do that I haven’t thought of yet?

Hey Frac7ure,

I believe what you want is the Process.Start Method; you can read about it on MSDN (Quick Link “^y^”).
I don’t know anything about PsExec, so I can’t help on that end, sorry!

Example:

//This would work on Macintosh, I don't know about Windows, sorry!
Process.Start("/Applications/TextEdit.app/Contents/MacOS/TextEdit");

I hope this helps! - Gibson