Hey guys, I'm going to need a little bit of help on this one.
Alright, I'm making a NET SEND program for some classmates at a local tech school I go to. I know there is already one out, but I want to learn some new techniques.
So far, the code I have is:
It opens the cmd, and sends the variable I set, and executes, but it opens up around 30 or so cmd windows, and executes about 30 times in each. I only wish to have one, and have it execute once.
the ipmessage is dim as string, and the variable is set to:
Any help so I don't get a million windows and executes would be very greatful
Alright, I'm making a NET SEND program for some classmates at a local tech school I go to. I know there is already one out, but I want to learn some new techniques.
So far, the code I have is:
Code:
Call Shell("C:\WINDOWS\system32\cmd.exe", vbNormalFocus)
'opens cmd
SendKeys ipmessage
'sends the ipmessage string
SendKeys vbNewLine
'executes the command in cmd
It opens the cmd, and sends the variable I set, and executes, but it opens up around 30 or so cmd windows, and executes about 30 times in each. I only wish to have one, and have it execute once.
the ipmessage is dim as string, and the variable is set to:
Code:
ipmessage = ("net send " + ip.Text + " " + message.Text)
Any help so I don't get a million windows and executes would be very greatful