Sign in to follow this  
Followers 0
laserdude

Inetget Not Working

3 posts in this topic

#1 ·  Posted (edited)

$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

Share this post


Link to post
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

Share this post


Link to post
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)

Share this post


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
Sign in to follow this  
Followers 0