Sign in to follow this  
Followers 0
phatzilla

Downloading file / running file question.

3 posts in this topic

#1 ·  Posted (edited)

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

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Wow im an idiot; thanks for the help.

Share this post


Link to post
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
Sign in to follow this  
Followers 0