View Full Version : http download pad
hi, newby again :o
how can i do this
by a simple download with a button
HTTP.Download("http://myserver/myfile.exe", _TempFolder.."C:\\dir\myfile.exe", MODE_BINARY, 20, 80, nil, nil, nil);
and how i am going to get the progress to work
please help!
what is wrong here :huh
rhosk
10-31-2005, 02:02 PM
First off, use this -
HTTP.Download("http://myserver/myfile.exe", _TempFolder.."C:\\dir\\myfile.exe", MODE_BINARY, 20, 80, nil, nil, nameOfCallback);
Then use a callback function, great example here -
http://www.indigorose.com/webhelp/ams60/Program_Reference/Actions/HTTP.Download_Examples.htm
HTH
Brett
10-31-2005, 02:57 PM
_TempFolder.."C:\\dir\myfile.exe"
You need to decide if you want to download to _TempFolder or "C:\\dir"
change the argument to:
_TempFolder.."\\myfile.exe"
or
"C:\\dir\myfile.exe"
using both is creating an invalid path.
rhosk
10-31-2005, 03:04 PM
I didn't even see that, I was tunnel-visioned. Brett's right, but also escape your slashes if decide on absolute file path.
"C:\\dir\\myfile.exe"
Thx everyone :yes
it works
Powered by vBulletin™ Version 4.0.6 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.