Advertisement
Guest User

Untitled

a guest
May 2nd, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. Dim psi As New System.Diagnostics.ProcessStartInfo()
  2. psi.FileName = (AppToStart)
  3. psi.RedirectStandardError = True
  4. psi.RedirectStandardOutput = True
  5. psi.Verb = "runas"
  6. psi.CreateNoWindow = True
  7. psi.UseShellExecute = False
  8. psi.UserName = TbUser.Text
  9. psi.Password = ConvertToSecureString(TbPass.Text)
  10. psi.Domain = ""
  11. Dim p As Process = Process.Start(psi)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement