Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 5 of 5
  1. #1
    Join Date
    Sep 2005
    Location
    The Netherlands
    Posts
    36

    http download pad

    hi, newby again

    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

  2. #2
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    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/am...d_Examples.htm

    HTH
    Last edited by rhosk; 10-31-2005 at 01:09 PM.

  3. #3
    Join Date
    Jan 2000
    Posts
    2,002
    Quote Originally Posted by CAI
    Code:
    _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.

  4. #4
    Join Date
    Aug 2003
    Location
    Maine, USA
    Posts
    1,695
    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"

  5. #5
    Join Date
    Sep 2005
    Location
    The Netherlands
    Posts
    36
    Thx everyone

    it works

Similar Threads

  1. How to stop a http download?
    By odeen_c in forum AutoPlay Media Studio 6.0
    Replies: 0
    Last Post: 10-01-2005, 12:05 PM
  2. Bug? Http download error not recorded by GetHTTPErrorInfo()
    By Ken Gartner in forum TrueUpdate 2.0
    Replies: 1
    Last Post: 03-16-2005, 07:56 AM
  3. HOWTO: Download and Install Files from the Web
    By Support in forum Setup Factory 6.0 Knowledge Base
    Replies: 0
    Last Post: 10-23-2002, 01:16 PM
  4. HTTP download problem
    By skameni in forum Setup Factory 6.0
    Replies: 3
    Last Post: 09-12-2002, 02:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts