Reputation: 555
I'm producing an application that needs to launch multiple programs on networked PCs, and I need to run the programs on the PCs on which they reside, not the local PC. For example, if I have 5 PCs on the network, I'll store the paths to each PC's program (and arguments) within an array containing 5 elements; the application will need to run the program stored on PC1 on PC1, the program stored on PC2 on PC2, and so on.
One important thing to note is that the programs, written in Unity, have a full-blown UI that needs to be displayed on their corresponding PC.
Please could somebody give me hints as to how to accomplish this. I ideally don't want to use any hacks or third-party software. If it helps, each of the PCs will be logged into before the programs run!
Upvotes: 0
Views: 42
Reputation: 4511
Use PsExec from SysInternals as described here
& ".\psexec" -accepteula -i "\\computername" -u "domain\username" -p "password" "command line"
Upvotes: 1