Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Deleting files Content.IE5
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01195676
Message ID:
01195699
Views:
23
You may also check Re: Temporary Internet Files Thread #1070798 Message #1072481

>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
>
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform