Solved

Using Net Send within Visual Basic

Posted on 2003-12-10
6
234 Views
Last Modified: 2013-11-25
My brain is about to explode,
I really can'y get my head around calling up the command prompt and using the net send command in visual basic .net any ideas , any work arounds?

0
Comment
Question by:Hickymanz
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
6 Comments
 
LVL 15

Expert Comment

by:SRigney
ID: 9913991
Shell("Net Send johnsmith Hello how are you")
0
 
LVL 15

Expert Comment

by:SRigney
ID: 9913992
oh wait, I see .net, hold on.
0
 
LVL 15

Expert Comment

by:SRigney
ID: 9914072
0
 
LVL 15

Accepted Solution

by:
SRigney earned 125 total points
ID: 9914095
ProcessStartInfo myProcess_startinfo = new System.Diagnostics.ProcessStartInfo("C:\\WINDOWS\\system32\\net.exe","send x.x.x.x Hello World");

This on looks like it will also work.
0
 
LVL 27

Expert Comment

by:planocz
ID: 10260583
No comment has been added lately, so it's time to clean up this TA.
I will leave a recommendation in the Cleanup topic area that this question is:
No response from Hickymanz from 12/10/2003 comment
Award points to SRigney is recommend.
Please leave any comments here within the next seven days.
PLEASE DO NOT ACCEPT THIS COMMENT AS AN ANSWER!

planocz
EE Cleanup Volunteer
0

Featured Post

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question