Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deleting files Content.IE5
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Deleting files Content.IE5
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Divers
Thread ID:
01195676
Message ID:
01195676
Vues:
51
Hi,
I am trying to delete files. But occasionally I get an error message:

0x800a0046 Unknown Comm Status Code.

What does this mean? Is there anyway around this because I would like to be able to
clean out these temp folders.
Thanks
Steve
create cursor tempfiles ( cFilename c(200),  nSize I, dMod d, FolderAttr I, FileAttr I )
oFSO = CreateObject('Scripting.FileSystemObject')
oFolder = oFSO.GetFolder('C:\Documents and Settings\sje\Local Settings\Temporary Internet Files\Content.IE5\')

oSubFolders = oFolder.SubFolders
FOR EACH oSubFolder IN oSubFolders
  mm= oSubFolder.Path
?? " ",osubfolder.Files.Count
  oFiles = oSubFolder.Files
  FOR EACH oFile IN oFiles
	nn= oFile.path
	? "dele" + JUSTFNAME(nn)
	oFile.Delete()
	endif
  ENDFOR
ENDFOR
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform