send strings to NT console or DOD prompt

How can I send a string (to run some console app) through VB?
Who is Participating?
mcriderConnect With a Mentor Commented:
Once a VB app is started, microsoft disconnects it from the console, and you no longer have access to it.

You can run a command several ways...

Using the shell statement, you will open a new console window:

   Shell "command",vbNormalFocus

If you want to execute a command in an existing console window, you can do this:

   AppActivate "console window title"
   SendKeys "command~"


edvedAuthor Commented:
Sorry, I cut my question a bit short. To clarify: I want send a string to the DOS prompt as if I were typing it in the standard way. Specifically, I am trying to use the "Net Send" feature but need to hard code this to a particular user or machine on the LAN.
All Courses

From novice to tech pro — start learning today.