11-25-2011, 08:19 PM
Hey Covert2Sting,
Thanks again for posting on BP Forums!
First of all, I am not really sure why VB is not recognizing the State command for Winsocks, I mean.. It is a standard command. That is really strange.
As for opening applications or opening a command prompt command, here is the code
Hope this helps a bit, sorry about not knowing the reasons for the unrecognized State property.
Thanks again for posting on BP Forums!
First of all, I am not really sure why VB is not recognizing the State command for Winsocks, I mean.. It is a standard command. That is really strange.
As for opening applications or opening a command prompt command, here is the code
Code:
'To open applications
Process.start("APPLICATION PATH.exe")
Code:
'To send a CMD command via a CMD window
Dim psi As Object = New ProcessStartInfo
psi.FileName = "cmd.exe"
Process.Start(psi) 'Open a new CMD Window
SendKeys.Send("COMMAND HERE" & "{enter}") 'Type in a command (such as 'help' or 'dir') and press enter
Hope this helps a bit, sorry about not knowing the reasons for the unrecognized State property.