Fog Creek Software
Discussion Board




Closing Remotely a Program


Imagine that want to send a request from \\Server1
to close a program (pretty much like CTRL + ALT + DEL on the application) which is running on \\Client1

Let's says the program is called MyProg.Exe

How could I accomplish this ?
Should I use DCOM? COM?

Any sample code to share?

Snacky
Saturday, May 10, 2003

Is the application on \\Client1 connected to \\Server ???
I.E. can \\Server pass calls into \\Client1 ???

COM, DCOM, and COM+ are all ok for this type of distribuited application architecture, but you will have to write all of the marshalling/unmarshalling (plumbig) out by hand. 

You coould also use CORBA and IDL with a C++ App, or if the 2 systems (Client and Server) are newer, you could do it in C# or another .NET (IL supporting) Language. 
.NET would be the fastes solution, providing you can make sure that the Clients and Server have the latest SP's for the framework, as .NET makes the serialization totally transparent, the Client would be acting as though the request was a local one, even if it was sent from the Server ...

Hope that Helps!
Cheers!

Robert French
Saturday, May 10, 2003

http://windows.oreilly.com/news/win2kcommands_0401.html#rkill

Big B
Saturday, May 10, 2003

http://www.google.com/search?hl=&cat=&meta=&q=remote+process+kill+windows

anon
Sunday, May 11, 2003

Robert :

Using .NET will it work fine with WinXP, Win98, Win2K clients but also with Citrix or Terminal Server clients (connections)

Thanks in Advance!

Snacky

Snacky
Sunday, May 11, 2003

pskill from Sysinternal: http://www.sysinternals.com/ntw2k/freeware/pskill.shtml

Innocent Bystander
Tuesday, May 13, 2003

Using .NET will be fine with anything that has a .NET framework installed.  Using it as a reason to close a remote program appears to be in the class of identifying everything as a nail.

Simon Lucy
Tuesday, May 13, 2003

*  Recent Topics

*  Fog Creek Home