hi, please take a look at my code:

VB Code:
  1. Private Sub cmdSend_Click()
  2. StatusBar1.Panels(1).Text = "Sending..."
  3. Dim sms As Integer
  4.       sms = FreeFile
  5.       Open App.Path & "\sms.bat" For Output As #sms
  6.       Print #sms, "easyload.exe" & " " & "--sendsms " & " " & txtPhonenumber.Text
  7. Close #sms
  8. 'Shell
  9. ShellAndWait (App.Path & "\WINDOWS\sms.bat"), vbHide
  10. StatusBar1.Panels(1).Text = "Sent"
  11. pause (2000)
  12. StatusBar1.Panels(1).Text = "Done."
  13. End Sub

what is the best code aside from my code? i dont want to use anymore the .bat is there another way?