Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting Cooking From Foxpro
Message
From
23/12/1999 17:17:39
 
 
To
23/12/1999 16:46:14
General information
Forum:
Visual FoxPro
Category:
Internet applications
Miscellaneous
Thread ID:
00308198
Message ID:
00308239
Views:
32
>Thanks for your quick response and information. I did however try that. The files still are not listed. Any other thoughts?
>

My cookies directory on my NT box here is C:\WinNT\Profiles\Edr\Cookies; the following VFP6 code reads the cookies folder:
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
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Reply
Map
View

Click here to load this message in the networking platform