Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting Cooking From Foxpro
Message
De
23/12/1999 17:17:39
 
 
À
23/12/1999 16:46:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Applications Internet
Divers
Thread ID:
00308198
Message ID:
00308239
Vues:
31
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform