• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 742
  • Last Modified:

How to start a process remotely

Hello,
i've found a very nice tool on www.sysinternals.com it's called psexec.
with this tool you can start a process on a remote machine.

I need this feature in one of my applications.
Does anybody know which API could do that?

thanks a lot!
steffen
0
stele99
Asked:
stele99
1 Solution
 
Éric MoreauSenior .Net ConsultantCommented:
in VB.Net you have the Remoting that can do this.
0
 
Guy Hengel [angelIII / a3]Billing EngineerCommented:
If you look closely at what psexec does, you will be able to do this "easily" yourself:
* check if psexecsv is "installed" on the remote machine
  + copy psexecsvc.exe to the remote server
  + create the service (see also psservice)
* check if the above service is started
  + start the service if stopped
* pass the command to run to the service, handling standard input/output
* if not other client needs the service:
  + stop the psexec service
  + destroy the service
  + delete the exe

CHeers
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now