DECLARE aCookies[1,5] #DEFINE COOKIES_CSLID 'HKCU\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders\Cookies' oWSH = CREATEOBJ('Wscript.Shell') cCookieLoc = oWsh.ReadReg(COOKIES_CSLID) ? ADIR(aCookies,ADDBS(cCookieLoc)+'*.*','S')There may be problems with ADIR and some of the file names for the cookies files; one way around that is to use the Scripting.FileSystemObject to handle the directory:
oFSO = CREATEOBJ('Scripting.FileSystemObject') oCookieFolder = oFSO.GetFolder(cCookieLoc) FOR EACH oFile IN oCookieFolder ? oFile.Path ERASE (oFile.Path) && erases the file ENDFOR