user186246
user186246

Reputation: 1877

How to run .exe binary of a remote server on the remote server from a c++ application in windows platform

What are the ways to run .exe binary of a remote server on the remote server from a c++ application in windows platform??

Upvotes: 0

Views: 661

Answers (3)

shf301
shf301

Reputation: 31394

What you are doing sounds exactly like what psexec already does. So you could either shell out to that or re-implement how it works. There are some descriptions of what it actually does:

http://windowsitpro.com/article/articleid/42919/psexec.html (I believe I read this in the past, but it's behind a paywall now)

http://www.ntkernel.com/w&p.php?id=15

Upvotes: 0

jrharshath
jrharshath

Reputation: 26583

open a telnet session (like MSalters suggests), or write a small server app that will run on the remote server, and listen for your its mother application's request to run that ".exe binary".

Upvotes: 0

MSalters
MSalters

Reputation: 179779

Open a telnet session to the server, start binary.

Upvotes: 1

Related Questions