Article View: borland.public.cppbuilder.internet.socket
Article #5785Re: Starting an application on another PC on the network
From: Junk Mail
Date: Wed, 09 Jul 2003 19:01
Date: Wed, 09 Jul 2003 19:01
31 lines
2515 bytes
2515 bytes
"Pang Fu" <nospam_pangfu@hotmail.com> wrote in message news:3f0c1db6@newsgroups.borland.com... > Is there an easy way of starting (running) an BCB application on another PC > on a LAN ? Easy? Not really. You could look into DCOM but I find it difficult to use. I did something similar to what your asking a while ago. If your on a LAN and everyone "trusts" one another you can create a simple program that uses a TServerSocket. Then when a client connects it can pass in the path and name of the executable you want to run. Then that program can use ShellExecute to run the program. Serveral probelms with this solution. 1.) This server socket program will have to already be started on all machines in which you would want to execute a program 2.) Hackers may have a hay-day with this application as well. (A suppose you could use some sort of authentication and encryption to hinder this though) 3.)Your .exe's will have to be in the same path for all machines unless you know off hand where each of them are installed. Just some suggestions. If you come up with something better let me know. --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.493 / Virus Database: 292 - Release Date: 6/25/2003
Technical Details
Message-ID:
<3f0c666f@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!in.100proofnews.com!in.100proofnews.com!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mailReferences:
<3f0c1db6@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 102541,37246973d7ccc97c X-Google-Attributes: gid102541,public X-Google-Thread: 11508e,37246973d7ccc97c X-Google-Attributes: gid11508e,public X-Google-ArrivalTime: 2003-07-09 12:12:04 PST From: "Junk Mail" <JunkMail@GlobalWideCommunications.com> Newsgroups: borland.public.cppbuilder.internet.socket,borland.public.cppbuilder.students References: <3f0c1db6@newsgroups.borland.com> Subject: Re: Starting an application on another PC on the network Date: Wed, 9 Jul 2003 14:01:07 -0500 Lines: 33 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2720.3000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 NNTP-Posting-Host: 12.205.191.80 Message-ID: <3f0c666f@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1057777263 12.205.191.80 (9 Jul 2003 12:01:03 -0700) Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-06!sn-xit-08!supernews.com!border3.nntp.aus1.giganews.com!small1.nntp.aus1.giganews.com!nntp.giganews.com!cyclone1.gnilink.net!in.100proofnews.com!in.100proofnews.com!nntp.infostrada.it!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail