Visual Basic Help

D

Thread Starter

David

I have a batch file (netsend.bat) set to run: "net send %1 %2" I was wondering how to make a visual basic program run "netsend.bat [insert string1] [insert string2]". Any help is appreciated
 
A

Alan Rimmington

intHandle = Shell("C:\anything.bat") would run anything.bat so something similar should work.
 
You can do anything in VB that you can do from a batch file anyway... NETSEND sounds like either a TCP/IP transmission or writing a file to a network drive??? All are possible in VB. :)
 
computername = textbox1.text
message = textbox2.text

Just use Shell "net send " + computername + " " + message
 
Top