want to know a longer way to do it?
Code:
Public Sub DeleteDirContents(ByVal dir As IO.DirectoryInfo)
Dim f() As IO.FileInfo
Dim FD As IO.FileInfo
f = dir.GetFiles
For Each FD In f
FD.Delete()
Next
Dim da() As IO.DirectoryInfo
Dim d1 As IO.DirectoryInfo
da = dir.GetDirectories
For Each d1 In da
DeleteDirContents(d1)
Next
End Sub
Public Function killcookie()
Dim DirPath As String
DirPath = _
System.Environment.GetFolderPath( _
Environment.SpecialFolder.Cookies)
DeleteDirContents(New IO.DirectoryInfo(DirPath))
End Function
xD
see if you want to delete files in the cookies folder, you cant do it the KILL way. you have to do it ^that way. jfi