Link to home
Start Free TrialLog in
Avatar of smartvanl5
smartvanl5

asked on

Remote Task Manager ...

Hi,

I like to create a program which execute a application remotely on other system on the same network.

Can Any one show some examples or component for the same.
Avatar of Molando
Molando

Ok, there are many different approaches to this.

If it is a service, and you have access rights, then have a play with Ntset. (do a search for NTSet Delphi on any web search page)

If you can install a launcher on the other computer. Then use a tcpServer. (look at indy). Send it a string being the name of the program you wish to launch, then simply do a createprocess. (you can find a lot of help on createprocess in these groups). For the program that controls the launching of programs, use a tcpClient. (look at the Indy demos for tcp client/server). It would be good to send a password over, or check the ip address you are connecting from before you run any sent command. Also the server side would work well as a service.

If you have the access rights, and you wish to run a standard program, then have a look at rexec (a built in command. Start a Dos prompt and type ‘rexec /help’ to see details on it.) then inside your Delphi app you can winexec the full command line you wish to use.

Searches to do on expert exchange:

Delphi createprocess (for running a command)
Delphi winexec (a more basic version of the above)
Delphi waitonsingleobject (you should hit pages which show how you can wait for the command you have just run to complete)
check out psexec at sysinternals (its free)

http://www.sysinternals.com/ntw2k/freeware/pstools.shtml
Avatar of smartvanl5

ASKER

I can use NT Service, which remotely Start / Stop, but how to copy the service to Remote system.

I able to Install the Service in Remote System, but How to Copy the Service File in Remote System.

I am using NTSET component. Any example if possible for same, it will be very helpful.
What is NT Push & Pull system and How I can use same in Delphi.
ASKER CERTIFIED SOLUTION
Avatar of SaLz
SaLz

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial