Jump to content

Can someone write me a script for downloading a file to a specific location because the one that I am using at the moment won't work for some reason it corrupts the sound file, I am downloading from here "LINK"

 

 

"dim xHttp: Set xHttp = createobject("Microsoft.XMLHTTP")

dim bStrm: Set bStrm = createobject("Adodb.Stream")
xHttp.Open "GET", "download url", False
xHttp.Send
with bStrm
    .type = 1 '//binary
    .open
    .write xHttp.responseBody
    .savetofile "<send to location>", 2 '//overwrite" Fine with png files but corrupts sound files :/
Link to comment
https://linustechtips.com/topic/472101-downloading-files-vbs/
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×