Jump to content

Inetget Not Working


 Share

Recommended Posts

$FileName= IniRead ($Remote_Version_ini_store,"control","FileName","none")
$local_file="C:\Updates.exe"
$dw_file = ("http://URL/"& $FileName)
MsgBox(0,"file",$dw_file)

$dwnld=InetGet($dw_file, $local_file,1,0)

The Above method is not working, Am i doing anything wrong ?

if i do this $sixe= InetGetSize($dw_file)

MsgBox(0,"file",$sixe)

its getting the size right.

Edited by laserdude
Link to comment
Share on other sites

InetGet loads the file to $local_file, Try this:

$FileName= IniRead ($Remote_Version_ini_store,"control","FileName","none")
$local_file="C:\Updates.exe"
$dw_file = ("http://URL/"& $FileName)
MsgBox(0,"file",$dw_file)

$dwnld=InetGet($dw_file, $local_file,1,0)

Run ($local_file)

Alternatively there is _INetGetSource() in Inet.au3 that returns the source code without writing to any files.

Mat

Link to comment
Share on other sites

InetGet loads the file to $local_file, Try this:

$FileName= IniRead ($Remote_Version_ini_store,"control","FileName","none")
$local_file="C:\Updates.exe"
$dw_file = ("http://URL/"& $FileName)
MsgBox(0,"file",$dw_file)

$dwnld=InetGet($dw_file, $local_file,1,0)

Run ($local_file)

Alternatively there is _INetGetSource() in Inet.au3 that returns the source code without writing to any files.

Mat

Hey Mat Thanks for the Reply....

Only working method I am able to find is this $ver = InetGet(("http://URL/" & $FileName),$local_file,0,1)

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...