Equilvalent NET SEND ?

  • Thread starter Thread starter Phil Hunt
  • Start date Start date
P

Phil Hunt

I am porting an VB6 program to .NET C#
There is a NET SEND command in the VB6 program. Just wondering if there is
any thing similar in the framework.

Thanks.
 
There is a NET SEND command in the VB6 program. Just wondering if there is

"net send" native (hmm) New to me in VB6, thought i got it all, but
system("net send....yada yada
something might work... in cs - invoking the old black screen
commands... looks that thats what u been doing...
dont be hoping broadcasts will work on vlans...

//CY
 
Why would you do a NET Send via an application? Isn't that a little risky?
Why not send an email or something, a NET SEND can go to everyone on your
network.
 
Phil,

There isn't a NET SEND command in VB6. Rather, you are probably
executing that using the Shell function in VB6.

In .NET you would use the Process class to pass that to execute NET
SEND.
 
What is the "something" you are thinking about. Basically, I am just sending
a window message to an user that something need his attention.
 
Hi,


Why risky?

IMHO , net send might be a valid way to send message around.
I haven't used it in years though.

OP:
You can use Process.Start to execute it, almos tin the same way that you did
in VB6
 
What is the "something" you are thinking about. Basically, I am just sending
a window message to an user that something need his attention.

Don't know C# version but it was the following in VB.NET (it would be
good to port the same thing into C#)

Shell("net send") and of course the function should continue with
destination ip/computer name and the message that will be transmitted.

Hope this helps.
 
Phil Hunt said:
I am porting an VB6 program to .NET C#
There is a NET SEND command in the VB6 program. Just wondering if there is
any thing similar in the framework.

Thanks.


Added to what others suggested, keep in mind that "net send" no longer
exists in Vista and higher. This command line tool was deprecated in favor
of MSG.EXE, which is also the preferred tool on XP.

Willy.
 
Thanks guy. I replace a cmd FTP with some framework stuff, I thought I can
do the same with net send. Apparently not.
 
Hi,



Willy Denoyette said:
Added to what others suggested, keep in mind that "net send" no longer
exists in Vista and higher. This command line tool was deprecated in favor
of MSG.EXE, which is also the preferred tool on XP.

Honestly I was under the impression it was a NETWARE command . It's that
long since I last used it.
 
Ignacio Machin ( .NET/ C# MVP ) said:
Hi,





Honestly I was under the impression it was a NETWARE command . It's that
long since I last used it.

MSG.EXE was introduced with Terminal Server as it's not possible to use NET
SEND to send a message to a user in a TS Session other than the console
session.
As user logins are bound to session 1 in Vista and WS2008, it was necessary
to remove NET SEND, in order to prevent users sending messages to session 0,
which is really a bad think.

Willy.
 
Not exact NET SEND, but it is very easy to use if you need to send
message to LAN user:
http://www.winpopup-lan-messenger.com/net-send-sdk.html

It does not send message itself, it transfer message to locally
running messenger for sending.
You can use freeware Fomine Net Send GUI as messenger for sending and
receiving messages:
http://www.fomine.com/net-send-gui.html
OR
Winpopup LAN Messenger - you can send message via Winpopup Server (to
offline user for example) in this case.
 
Back
Top