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:
01196871
Views:
9
This seems to work, and seems to be telling you when it can't delete a file.
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
	Try
	   oFile.Delete()
	CATCH
	   ? "missed " + oFile.path
	ENDTRY	
  ENDFOR
ENDFOR
Previous
Reply
Map
View

Click here to load this message in the networking platform