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?
I got error this:
[ 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:
