Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

Download a file check process when is finished

$
0
0
Hello everybody, I have problem I want make script who is waiting for file when is downloaded after this run a file. I have script like this but is not working, maybe sombody can check what's wrong with script?
[ autoit ]      
Do $t = $t + 1 Until (FileExists("C:\Documents and Settings\Administrator\My Documents\Downloads\jZipSetup.exe") And Not FileExists("C:\Documents and Settings\Administrator\My Documents\Downloads\jZipSetup.exe.part")) Or ($t = 60 And Not FileExists("C:\Documents and Settings\Administrator\My Documents\Downloads\jZipSetup.exe") And Not FileExists("C:\Documents and Settings\Administrator\My Documents\Downloads\jZipSetup.exe.part")) Or (WinExists("Download Error")) Sleep(500) WinClose("Downloads") run( "cmd /c ""C:\Documents and Settings\Administrator\My Documents\Downloads\jZipSetup.exe""", "", @SW_HIDE )

I got error this:
Posted Image

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>