quote:
Originally posted by Volv
The problem with updating probably has to do with caching of the file which is being downloaded. A common work-around for this problem in MsgPlus scripts is to just append a random string/number at the end of the URL each time something is retrieved from it.
eg.
code:
var randomNum = Math.random() * 100;
MsgPlus.DownloadFile(url + "?" + randomNum, MsgPlus.ScriptFilesPath + "\\DP")
You don't want to append a random number to the url because it will fill up the users cache. Better bet is to clear the cache for the url using this code
code:
Interop.Call('wininet.dll', 'DeleteUrlCacheEntryW', www.someurl.com);