Hi,
I need to be able to do 2 things:
> Determine if a FILE() exists in the Temporary Internet Files / Cache 'folder' and FILETOSTR() its content if it does.
I've tried many approaches (Using FILE(), ADIR(), FILETOSTR(), adding a MyFile[1] name...) but nothing seems to work.
I can see there is Win API function referenced by the site News2News that might help (declaration below) but have not been able to get it to work either.
I need to be able to do 2 things:
> Determine if a FILE() exists in the Temporary Internet Files / Cache 'folder' and FILETOSTR() its content if it does.
I've tried many approaches (Using FILE(), ADIR(), FILETOSTR(), adding a MyFile[1] name...) but nothing seems to work.
Code:
** XP
? FILE("C:\Documents and Settings\"+(SUBSTR(SYS(0),AT("#",SYS(0))+2,LEN(SYS(0))))+"\Local Settings\Temporary Internet Files\"+"EmployerMain.htm",1)
** W7-8
? FILE("C:\Users\"+(SUBSTR(SYS(0),AT("#",SYS(0))+2,LEN(SYS(0))))+"\AppData\Local\Microsoft\Windows\Temporary Internet Files\"+"EmployerMain.htm",1)
I can see there is Win API function referenced by the site News2News that might help (declaration below) but have not been able to get it to work either.
Code:
DECLARE INTEGER GetUrlCacheEntryInfo IN wininet;
STRING lpszUrlName,;
STRING @ lpCacheEntryInfo,;
INTEGER @ lpdwCacheEntryInfoBufferSize