Sign in to follow this  
Followers 0
janci

downloading

6 posts in this topic

Hello.. I have a problem

I whant to determine if the file is already downloaded or the download is in progress..

when I use Opera as download manager.. it saves the downloaded files into the selected directory but files that are downloading are in the same folder and they are locked(I can rename or move it).(ex. IE it does anotherway : it saves the file into the temp directory and after the download is finished, it moves the file in the selected folder)

How can I(ouch,, not me, my program ofcourse :-) ) know if the file is alrerady downloaded?

Thanks

sorry for bad english

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

If FileExists("PATHTOFILEDOTEXE?") Then
    MsgBox(4096, "THe file", "Exists")
Else
    MsgBox(4096,"THe file", "Does NOT exists")
EndIf

Edited by tarre

Share this post


Link to post
Share on other sites

You can do this:

While @InetGetActive
   Msgbox(0, "It's", "It's downloading!")
WEnd

Share this post


Link to post
Share on other sites

You can do this:

While @InetGetActive
   Msgbox(0, "It's", "It's downloading!")
WEnd
that will not stop the download if the file already is downloaded. that will keep the while loop active while the download is active

Share this post


Link to post
Share on other sites

No, no.. it's not that I whant!

@InetGetActive is only for downloads from autoit scripts

If FileExists() .. it is not the solution, beacause the file exists before the download is complete!

Share this post


Link to post
Share on other sites

No, no.. it's not that I whant!

@InetGetActive is only for downloads from autoit scripts

If FileExists() .. it is not the solution, beacause the file exists before the download is complete!

Why not do If FileExists() before you download? I mean, you seem to expect AutoIt to do some type of cache work on all your downloads, when 1 line of code before you start downloading would fix the issue no?

Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.

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