Jump to content

Yet Another Question! : )


Recommended Posts

I am trying to download a file from the internet to the same location that the script it run like below but it only works if I use the full destination path and not a macro or var!

The below is code I took from help but only I modified it a bit,

; Advanced example - downloading in the background
InetGet("http://www.mydomwin.com/file.zip",@ScriptDir , 1, 1) ;;;; If I replace @ScriptDir with C:\file.zip it works fine.
While @InetGetActive
  TrayTip("Downloading", "Bytes = " & @InetGetBytesRead, 10, 16)
  Sleep(250)
Wend

MsgBox(0, "Complete", "Download Complete" )

Did I miss something. I didnt see/read anythign about not being able to use macros or vars in my destination,

MrChris

Link to comment
Share on other sites

crap on me I totaly should have none that as I had that same bit on other scripts I made.

Thanks a ton.

P.S: In the not to distant future I will be donating a little bit of $$ to the future development of AutoIt. All though it will not be much it will be my little contribution to the further dev work on this sweet a$$ app.

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...