Articles   Members Online:
-Article/Tip Search
-News Group Search over 21 Million news group articles.
-Delphi/Pascal
-CBuilder/C++
-C#Builder/C#
-JBuilder/Java
-Kylix
Member Area
-Home
-Account Center
-Top 10 NEW!!
-Submit Article/Tip
-Forums Upgraded!!
-My Articles
-Edit Information
-Login/Logout
-Become a Member
-Why sign up!
-Newsletter
-Chat Online!
-Indexes NEW!!
Employment
-Build your resume
-Find a job
-Post a job
-Resume Search
Contacts
-Contacts
-Feedbacks
-Link to us
-Privacy/Disclaimer
Embarcadero
Visit Embarcadero
Embarcadero Community
JEDI
Links
How to Dynamically net send a messages to a remote PC. Turn on/off line numbers in source code. Switch to Orginial background IDE or DSP color Comment or reply to this aritlce/tip for discussion. Bookmark this article to my favorite article(s). Print this article
Dynamically net send a message 03-May-04
Category
Win API
Language
Delphi All Versions
Views
756
User Rating
4.5
# Votes
2
Replies
1
Publisher:
Darley, F. Joe
Reference URL:
			1   
2   {this is useful to if your running a application on a remote PC and you
3   need the app to send you information on its status.}
4   
5   type
6     TForm1 = class(TForm)
7       btnSend: TButton; //button to send the message
8       edtPC_name: TEdit;//edit that contains the remote PC name
9       edtMessage: TEdit;//edit that contains the message to send
10      procedure btnSendClick(Sender: TObject);
11    private
12      { Private declarations }
13    public
14      { Public declarations }
15    end;
16  
17  var
18    Form1: TForm1;
19  
20  implementation
21  
22  {$R *.DFM}
23  
24  procedure TForm1.btnSendClick(Sender: TObject);
25  begin
26    // sends message
27   winexec(pchar('Net send '+edtPC_name.text+' '+edtMessage.text),0)
28  end;


			
Vote: How useful do you find this Article/Tip?
Bad Excellent
1 2 3 4 5 6 7 8 9 10

 

Advertisement
Share this page
Advertisement
Download from Google

Copyright © Mendozi Enterprises LLC