Showing posts with label VBscript. Show all posts
Showing posts with label VBscript. Show all posts

16 January 2016

Download File Dengan VBscript

dim xHttp: Set xHttp = createobject("Microsoft.XMLHTTP")
dim bStrm: Set bStrm = createobject("Adodb.Stream")
xHttp.Open "GET", "https://www.google.com/anu.exe", False
xHttp.Send
with bStrm
    .type = 1 '//binary
    .open
    .write xHttp.responseBody
    .savetofile "anu.exe", 2 '//overwrite
end with

Ganti anu.exe dengan anumu.exe