Link to home
Start Free TrialLog in
Avatar of donniedarko801
donniedarko801

asked on

NET SEND application front end. How?

Hello experts,

There is a command line program in windows 2000 called NetSend that allows you to send messages to users loggeg in to a certain domain name. I was thinking of building a simple interface to send these messages instead of the command prompt window. How would I do that?

Controls

Form1 - The form
Textbox1 - "To a single user" box
Textbox2 - Body of the message
Button1 - Send it!

Sample Sintax:
C:\net send who what
C:\net send johndoe Hello there!

Thanks for anything!
ASKER CERTIFIED SOLUTION
Avatar of Bob Learned
Bob Learned
Flag of United States of America image

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
Avatar of donniedarko801
donniedarko801

ASKER

Thanks! You've already got my points. I'll reaised points reward to 350 for one last question.

I'm looking for a way to spoof who the message is coming from and I was wondering how to implement it in the code above.

I think this post talks about it but I like how clean your code is, :-)

Here's what it's about: NetMessageBufferSend
Here's the usage I think... NetMessageBufferSend( hosttosendto, mesgname, myspoofedname, message, messagelen );
Here's the post I've found: https://www.experts-exchange.com/questions/20125951/Disable-Hide-Sender-Net-Send.html

Thanks again!
Never worked with NetMessageBufferSend.  What is the legitimate reason for wanting to spoof?

Bob
Reason is message could be sent by more then one person on the same department but is not that big of a deal. Thanks anyway :-)