By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,145 Members | 1,635 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,145 IT Pros & Developers. It's quick & easy.

message send code

100+
P: 553
Using Windows messenger service, would it be easier to communicate with some other PC using your code..... so that we dont have to do the rest of the work of setting receiving end up, etc

can anyone guide how to write a code just simply to send a message to another machine - similar to net send...

I dont want to use existing netapi32.dll or anything else.

Thanks experts
Aug 7 '07 #1
Share this Question
Share on Google+
13 Replies


Rabbit
Expert Mod 10K+
P: 12,392
net send [ip address] [message] is the command line syntax for sending an alerter message over the windows messenger service. However, most machines have this turned off for security reasons. The Call Shell() function will allow you to use command line.
Aug 7 '07 #2

P: 65
Using Windows messenger service, would it be easier to communicate with some other PC using your code..... so that we dont have to do the rest of the work of setting receiving end up, etc

can anyone guide how to write a code just simply to send a message to another machine - similar to net send...

I dont want to use existing netapi32.dll or anything else.

Thanks experts

You may use this:

Shell ("c:\windows\system32\net send <computer name> hi")
Aug 8 '07 #3

100+
P: 553
guys

i have requested help in writing a program similar to net send in VBA !!


You may use this:

Shell ("c:\windows\system32\net send <computer name> hi")
Aug 8 '07 #4

Rabbit
Expert Mod 10K+
P: 12,392
Why reprogram net send when that's already built into Windows for you?
Aug 8 '07 #5

100+
P: 553
Well, Rabbit

there are lot of things i may need to change.. for example

i dont want to show where the message came from , etc

basically, i want to learn how to code this


Why reprogram net send when that's already built into Windows for you?
Aug 8 '07 #6

missinglinq
Expert 2.5K+
P: 3,532
I'm afraid most of us here are too busy answering questions for people with real problems to spend time trying to help you re-invent the wheel, especially when your stated reason for doing so is that you can send messages to the computers of others without the recepients being able to know who has sent the messages. To be honest, this sounds as if it's bordering on unethical behavior.

Linq
Aug 8 '07 #7

Rabbit
Expert Mod 10K+
P: 12,392
I'm afraid most of us here are too busy answering questions for people with real problems to spend time trying to help you re-invent the wheel, especially when your stated reason for doing so is that you can send messages to the computers of others without the recepients being able to know who has sent the messages. To be honest, this sounds as if it's bordering on unethical behavior.

Linq
I quite agree. Besides, in a different thread I already posted the gist of what you would need to code network communication between two computers. Whether or not you expend the effort to learn how to accomplish it is up to you. We are not here to code your whole program for you.
Aug 8 '07 #8

missinglinq
Expert 2.5K+
P: 3,532
Questionit,

I've just spoken to our site administrator, and have been told that should anyone give you the code for sending messages so as to hide the name of the sender, we will remove the post!

Linq
Aug 8 '07 #9

100+
P: 553
Well,

as before, you all have misunderstood.

i never asked for a full and working code for this.

i said hiding the source information as an example of making some changes to the existing code - there could be many things i would like to change or add or delete.

i just wanted an idea how the code would be written.

and also, can moderators exaplin why code posting by anyone will be removed ? I dont see any removal of code postings when it has to do with anythign other than networking - i have never had any VB code posted to me removed before !!

this is just unacceptable unless you people can justify why

Questionit,

I've just spoken to our site administrator, and have been told that should anyone give you the code for sending messages so as to hide the name of the sender, we will remove the post!

Linq
Aug 14 '07 #10

JKing
Expert 100+
P: 1,206
Well,

as before, you all have misunderstood.

i never asked for a full and working code for this.

i said hiding the source information as an example of making some changes to the existing code - there could be many things i would like to change or add or delete.

i just wanted an idea how the code would be written.

and also, can moderators exaplin why code posting by anyone will be removed ? I dont see any removal of code postings when it has to do with anythign other than networking - i have never had any VB code posted to me removed before !!

this is just unacceptable unless you people can justify why
In all fairness you often fail to give a full clear and concise explanation of your problem. Because of this the experts often struggle to get to the root of your problem and misunderstandings consistently occur.

You have not provided any legitimate reason as to why you would be hiding sender information and none of us can fathom one either. This leads us to the conclusion that the code will be used for malicious, destructive and or illegal actions. This is why we won't nor will we let anyone else divulge this information. TSDN does not support, condone nor promote the use of code for malicious, destructive or illegal actions.

I am sorry if this was not your intent but because of your lack of a clear explanation this is how it has been viewed. In any case this information should not be posted because this is a public forum and anyone can view it.
Aug 14 '07 #11

100+
P: 553
Well,

if someone simply wants to learn how to do such things will never come up with a specific reason why he wants to do it.

He is a learner , he wants to know how these things can be done.

All i find is that what you guys are doing is not fair.
I dont expect you people asking me my identity and qualification and current role to allow expert answering my question..

if in this forum , revealing such information is not allowed, the post should have been closed long time ago by the moderators, but it was never.

If i say i am a professional developer working for a big IT company, would any one believe, no one...

so there is no point .. actually on the website main page, there should be a banner displaying message to all that all such kind of information like to that i am asking will never be provided to anyone!




In all fairness you often fail to give a full clear and concise explanation of your problem. Because of this the experts often struggle to get to the root of your problem and misunderstandings consistently occur.

You have not provided any legitimate reason as to why you would be hiding sender information and none of us can fathom one either. This leads us to the conclusion that the code will be used for malicious, destructive and or illegal actions. This is why we won't nor will we let anyone else divulge this information. TSDN does not support, condone nor promote the use of code for malicious, destructive or illegal actions.

I am sorry if this was not your intent but because of your lack of a clear explanation this is how it has been viewed. In any case this information should not be posted because this is a public forum and anyone can view it.
Aug 14 '07 #12

Rabbit
Expert Mod 10K+
P: 12,392
Well,

if someone simply wants to learn how to do such things will never come up with a specific reason why he wants to do it.

He is a learner , he wants to know how these things can be done.

All i find is that what you guys are doing is not fair.
I dont expect you people asking me my identity and qualification and current role to allow expert answering my question..

if in this forum , revealing such information is not allowed, the post should have been closed long time ago by the moderators, but it was never.

If i say i am a professional developer working for a big IT company, would any one believe, no one...

so there is no point .. actually on the website main page, there should be a banner displaying message to all that all such kind of information like to that i am asking will never be provided to anyone!
We are not asking you to identify yourself. What we want to know is why you need to do what you want to do. As mentioned before, we will not further any motive with malicious intent. We want to know your intent, not identity. You said you're a learner, but that's an identity, that doesn't tell us your intent.

As for giving you the basics of what is needed for a working networking application, I've already outlined that in one of your other posts. Whether or not you implement it is up to you.

And if you haven't noticed we do have Posting Guidelines. But to ask us to make a banner is unfeasible. The posting guidlines is several pages long. That would make for a huge banner. The fact that you failed to notice and read these guidlines which are stickied at the top of each forum is your own fault.
Aug 14 '07 #13

MMcCarthy
Expert Mod 10K+
P: 14,534
This question is now closed to futher posting.

To make it very clear. It does not matter why you want to know how to hide the sender. Because this code could be used by anyone viewing it for illegal or malicious purposes we will not provide it or allow anyone else to.

Any post containing code that can be used for this purpose will be deleted.

ADMIN
Aug 14 '07 #14

This discussion thread is closed

Replies have been disabled for this discussion.