Mart/Les,

Thanks a lot. I think this time issue is solved. Maybe a modification to the FTPGet() function will be also useful in the following manner or at least the below usage is very advisable:

 Code:
$RegVal = Readvalue( "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings","Syncmode5")
writevalue( "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings","Syncmode5","3","REG_DWORD")

FTPGet()

writevalue( "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Internet Settings","Syncmode5",$RegVal,"REG_DWORD")


Today I figured it out. In the morning I logged in manually and downloaded the file. When it became time for the script to download the file it was downloading only the old version, even though the version on the site was updated.
Most of the time the script was working, because when it was trying to download it the file was already updated on the site. What happened on Friday (because the guys that update it were lazy enough \:\) ) by the time the script downloaded it for the first time it was not updated, then after 10-15 mins or so it was updated on the site, but the script was still downloading the old version - even though cache was cleared each time before download (which is still a mystery to me).

Cya.