Jump to content

Downloading file / running file question.


Recommended Posts

I kinda forgot what my 2nd question was when i made my first thread hence me making a second thread.

I am currently using the following code to download / run an image file i have hosted

InetGet("www.imageshack.us/xxxx.jpg", C:"\xxxx.jpg", 1, 1)

sleep(5000)

run (c:\xxxx.jpg) [For example]

Now the problem is that sometimes the jpg file will tkae longer than 5 seconds to download therefore it'll error out and wont let me open it. My question is this : IS there a specific sleep command which WAITS for the exact amount of time it takes for the file to download, and THEN executes it, removing any possibilities of an error.

Thanks. And sorry for the second thread.

Edited by phatzilla
Link to comment
Share on other sites

InetGet ( "URL" [,"filename" [, reload [, background]]] )

Parameters

URL URL of the file to download. See remarks below. Can be "abort". filename [optional]

Local filename to download to. reload [optional]

0 = (default) Get the file from local cache if available

1 = Forces a reload from the remote site background [optional]

0 = (default) Wait until the download is complete before continuing.

1 = return immediately and download in the background (see remarks).

8)

NEWHeader1.png

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...