laserdude Posted December 14, 2009 Posted December 14, 2009 (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 December 14, 2009 by laserdude
Mat Posted December 14, 2009 Posted December 14, 2009 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 AutoIt Project Listing
laserdude Posted December 18, 2009 Author Posted December 18, 2009 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)
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now