Advertisement
Guest User

run batch command on vb.net and show results in richtextbox

a guest
Feb 22nd, 2013
724
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. 'for more help contact me at wisop112@hotmail.com, name: Wisdom oparaocha
  2.  
  3. Dim read As System.IO.StreamReader
  4. read = File.OpenText(Application.StartupPath & "\123.text")
  5.  
  6. Shell("cmd.exe /c" & TextBox1.Text + ">123.text")
  7. Do Until read.EndOfStream
  8. RichTextBox1.Text = read.ReadLine & vbCrLf
  9. Loop
  10.  
  11. 'create 1 textbox1
  12. 'create 1 button1
  13. 'create 1 richtextbox1
  14. 'in the start up directory of this program make a file could 123.text
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement