Using a DOS prompt from .Net

ryodoan

Well-known member
Joined
Jul 16, 2004
Messages
65
Location
Ohio
Programming Experience
3-5
[Resolved] Using a DOS prompt from .Net

I want to make a very (I mean very) simple .Net program for sending messages inside my home network.

The way I thought up would use the DOS Net Send feature.

(open DOS command prompt, type, net send <computer name> <message>)

How would I send that command? Is there a way I can use the start->run?
 
Last edited:
Thanks very much, while not exactly what I was looking for, it got me from point A to B.

Here is what I am using:

Shell("net send <Computer Name> <Message>")

Works fine, slight delay, but otherwise fine. Now to part B of program.... hehe
 
Shell("net send " & txtComputer.Text & " " & txtMessage.Text)

assuming there's a textbox for Computer and one for Message and both have been checked and they aren't null
 
Back
Top