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

Equilvalent NET SEND ?

P: n/a
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.
Dec 26 '07 #1
Share this Question
Share on Google+
11 Replies


P: n/a
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
Dec 26 '07 #2

P: n/a
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.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Phil Hunt" <phung1010(remove this)@hotmail.comwrote in message
news:uR**************@TK2MSFTNGP03.phx.gbl...
>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.

Dec 26 '07 #3

P: n/a
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 Hunt" <phung1010(remove this)@hotmail.comwrote in message
news:uR**************@TK2MSFTNGP03.phx.gbl...
>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.

Dec 26 '07 #4

P: n/a
Sorry, I did not mention it was a Shell out to an cmd window.

"Phil Hunt" <phung1010(remove this)@hotmail.comwrote in message
news:uR**************@TK2MSFTNGP03.phx.gbl...
>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.

Dec 26 '07 #5

P: n/a
What is the "something" you are thinking about. Basically, I am just sending
a window message to an user that something need his attention.
"Mike" <ig************@gmail.comwrote in message
news:uJ**************@TK2MSFTNGP04.phx.gbl...
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 Hunt" <phung1010(remove this)@hotmail.comwrote in message
news:uR**************@TK2MSFTNGP03.phx.gbl...
>>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.


Dec 26 '07 #6

P: n/a
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

--
Ignacio Machin
http://www.laceupsolutions.com
Mobile & warehouse Solutions.
"Mike" <ig************@gmail.comwrote in message
news:uJ**************@TK2MSFTNGP04.phx.gbl...
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 Hunt" <phung1010(remove this)@hotmail.comwrote in message
news:uR**************@TK2MSFTNGP03.phx.gbl...
>>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.


Dec 26 '07 #7

P: n/a
On Dec 26, 10:15 pm, "Phil Hunt" <phung1010(remove this)@hotmail.com>
wrote:
What is the "something" you are thinking about. Basically, I am just sending
a window message to an user that something need his attention.

"Mike" <igotyourdot...@gmail.comwrote in message

news:uJ**************@TK2MSFTNGP04.phx.gbl...
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 Hunt" <phung1010(remove this)@hotmail.comwrote in message
news:uR**************@TK2MSFTNGP03.phx.gbl...
>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.
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.
Dec 26 '07 #8

P: n/a
"Phil Hunt" <phung1010(remove this)@hotmail.comwrote in message
news:uR**************@TK2MSFTNGP03.phx.gbl...
>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.

Dec 26 '07 #9

P: n/a
Thanks guy. I replace a cmd FTP with some framework stuff, I thought I can
do the same with net send. Apparently not.
"Phil Hunt" <phung1010(remove this)@hotmail.comwrote in message
news:uR**************@TK2MSFTNGP03.phx.gbl...
>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.

Dec 26 '07 #10

P: n/a
Hi,

"Willy Denoyette [MVP]" <wi*************@telenet.bewrote in message
news:eQ*************@TK2MSFTNGP06.phx.gbl...
"Phil Hunt" <phung1010(remove this)@hotmail.comwrote in message
news:uR**************@TK2MSFTNGP03.phx.gbl...
>>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.
Honestly I was under the impression it was a NETWARE command . It's that
long since I last used it.

--
Ignacio Machin
http://www.laceupsolutions.com
Mobile & warehouse Solutions.
Dec 27 '07 #11

P: n/a

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.
Jan 15 '08 #12

This discussion thread is closed

Replies have been disabled for this discussion.