Advertisement
Guest User

Untitled

a guest
Aug 29th, 2015
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. Dim myProcess as Process = New Process
  2. Dim command, ip as String
  3. myProcess.StartInfo.FileName = "c:windowssystem32cmd.exe"
  4. myProcess.StartInfo.UseShellExecute = False
  5. myProcess.StartInfo.CreateNoWindow = True
  6. myProcess.StartInfo.RedirectStandardInput = True
  7. myProcess.StartInfo.RedirectStandardOutput = True
  8. myProcess.StartInfo.RedirectStandardError = True
  9. myProcess.Start()
  10. Dim sIn As System.IO.StreamWriter = myProcess.StandardInput
  11. sIn.Write("cd c:" & System.Environment.NewLine)
  12. sIn.Write("myexeFile " & command & " " & ip & System.Environment.NewLine)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement