locked
network download file RRS feed

  • Question

  • Hello Guys !

    When i clicked my button i want to download my "newprogram.exe" (when i  updated my program )

    how i can do that ? is it possible ?

    when i try network.downloadfile("filepath") nothing happened.

    (im sorry for my bad english )

    MehmetTR

    Sunday, February 15, 2015 5:12 PM

Answers

  • The Network.Download file should return a path (temp file where the downloaded file is stored).

    1. Check this return value (i.e. print it with TextWindow.WriteLine).
    2. If it is not set to a file, then recheck your network path or test with another network file
    3. If it does give a file path then check this file exists and has non-zero size.
    4. To use the downloaded file you may have to copy it somewhere and change the extension from tmp to exe.
    • Proposed as answer by Zock77Editor Monday, February 16, 2015 11:10 PM
    • Marked as answer by Nonki Takahashi Sunday, February 22, 2015 9:59 AM
    Sunday, February 15, 2015 6:49 PM

All replies

  • The Network.Download file should return a path (temp file where the downloaded file is stored).

    1. Check this return value (i.e. print it with TextWindow.WriteLine).
    2. If it is not set to a file, then recheck your network path or test with another network file
    3. If it does give a file path then check this file exists and has non-zero size.
    4. To use the downloaded file you may have to copy it somewhere and change the extension from tmp to exe.
    • Proposed as answer by Zock77Editor Monday, February 16, 2015 11:10 PM
    • Marked as answer by Nonki Takahashi Sunday, February 22, 2015 9:59 AM
    Sunday, February 15, 2015 6:49 PM
  • Before using NetworkDownloadFile(), you should upload file to a http server.  And the filepath should start with "http://".

    Nonki Takahashi

    Sunday, February 22, 2015 9:58 AM