How to delete Temporary Internet file using vb 6.0?

How to delete Temporary Internet file using vb 6.0?

Page 1 of 1

1 Replies - 13545 Views - Last Post: 07 June 2007 - 08:11 AM Rate Topic: -----

#1 Trupti  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 07-June 07

How to delete Temporary Internet file using vb 6.0?

Post icon  Posted 07 June 2007 - 06:38 AM

How to delete Temporary Internet file using vb 6.0?
Is This A Good Question/Topic? 0
  • +

Replies To: How to delete Temporary Internet file using vb 6.0?

#2 Dilerious  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: 2
  • View blog
  • Posts: 280
  • Joined: 30-December 05

Re: How to delete Temporary Internet file using vb 6.0?

Posted 07 June 2007 - 08:11 AM

I beleive it goes something like

Sub Delete_Temp_Files_Primitive()

Dim sFileType As String ' Declare the Type of File
Dim sTempDir As String ' Temporary Directory


On Error Resume Next

sFileType = "*.tmp"
sTempDir = "c:\windows\Temp\" ' There might be mutiple temp directories (one for each profile) in Windows XP. Modify the code accordingly

Kill sTempDir & sFileType

' ---------------------------------------------------------------
' Delete Temporary Files, Excel VBA, Kill Statement
' ---------------------------------------------------------------

End Sub


Original site
Was This Post Helpful? 1

Page 1 of 1